参数项 | 描述 |
KubeletArgs | 设置业务部署时需要自定义的 Kubelet 相关参数。 |
Nameservers | 设置业务部署环境需要 DNS 服务器地址。 |
Hosts | 设置业务部署环境所需要的 Hosts。 |
nameserver = 183.60.83.19
、nameserver = 183.60.82.98
。apiVersion: node.tke.cloud.tencent.com/v1beta1kind: MachineSetspec:autoRepair: falsedeletePolicy: RandomdisplayName: xxxxxxhealthCheckPolicyName: ""instanceTypes:- SA2.2XLARGE8replicas: 2scaling:createPolicy: ZoneEqualitysubnetIDs:- subnet-xxxxx- subnet-xxxxxtemplate:spec:displayName: tke-np-bqclpywh-workerproviderSpec:type: Nativevalue:instanceChargeType: PostpaidByHourkeyIDs:- skey-xxxxxlifecycle: {}management:kubeletArgs:- feature-gates=EnableInPlacePodResize=true- allowed-unsafe-sysctls=net.core.somaxconn- root-dir=/var/lib/test- registry-qps=1000hosts:- Hostnames:- static.fake.comIP: 192.168.2.42nameservers:- 183.60.83.19- 183.60.82.98kernelArgs:- kernel.pid_max=65535- fs.file-max=400000- net.ipv4.tcp_rmem="4096 12582912 16777216"- vm.max_map_count="65535"metadata:creationTimestamp: nullsecurityGroupIDs:- sg-b3a93lhvsystemDisk:diskSize: 50diskType: CloudPremiumruntimeRootDir: /var/lib/containerdtype: Native
编号 | 参数 | 默认值 | 允许的值 / 范围 | 参数类型 | 范围 |
1 | "net.core.somaxconn" | 32768 | 4096 - 3240000 | int | The maximum length of the listening queue for each port in the system. |
2 | "net.ipv4.tcp_max_syn_backlog" | 8096 | 1000 - 3240000 | int | The maximum length of tcp SYN queue length. |
3 | "net.core.rps_sock_flow_entries" | 8192 | 1024 - 536870912 | int | The maximum size of hash table for RPS. |
4 | "net.core.rmem_max" | 16777216 | 212992 - 134217728 | int | The maximum size, in bytes, of the receive socket buffer. |
5 | "net.core.wmem_max" | 16777216 | 212992 - 134217728 | int | The maximum size, in bytes, of the send socket buffer. |
6 | "net.ipv4.tcp_rmem" | "4096 12582912 16777216" | 1024 - 2147483647 | string | The min/default/max size of tcp socket receive buffer. |
7 | "net.ipv4.tcp_wmem" | "4096 12582912 16777216" | 1024 - 2147483647 | string | The min/default/max size of tcp socket send buffer. |
8 | "net.ipv4.neigh.default.gc_thresh1" | 2048 | 128 - 80000 | int | The minimum number of entries that can be retained. If the number of entries is less than this value, the entries will not be recycled. |
9 | "net.ipv4.neigh.default.gc_thresh2" | 4096 | 512 - 90000 | int | When the number of entries exceeds this value, the GC will clear the entries longer than 5 seconds. |
10 | "net.ipv4.neigh.default.gc_thresh3" | 8192 | 1024 - 100000 | int | Maximum allowable number of non-permanent entries. |
11 | "net.ipv4.tcp_max_orphans" | 32768 | 4096 - 2147483647 | int | Maximal number of TCP sockets not attached to any user file handle, held by system. Increase this parameter properly to avoid the 'Out of socket memory' error when the load is high. |
12 | "net.ipv4.tcp_max_tw_buckets" | 32768 | 4096 - 2147483647 | int | Maximal number of timewait sockets held by system simultaneously. Increase this parameter properly to avoid "TCP: time wait bucket table overflow" error. |
编号 | 参数 | 默认值 | 允许的值 / 范围 | 参数类型 | 范围 |
1 | "fs.file-max" | 3237991 | 8192 - 12000500 | int | Limit on the total number of fd, including socket, in the entire system. |
2 | "fs.inotify.max_user_instances" | 8192 | 1024 - 2147483647 | int | Limit on the total number of inotify instances. |
3 | "fs.inotify.max_user_watches" | 524288 | 781250 - 2097152 | int | The total number of inotify watches is limited. Increase this parameter to avoid "Too many open files" errors. |
编号 | 参数 | 默认值 | 允许的值 / 范围 | 参数类型 | 范围 |
1 | "vm.max_map_count" | 262144 | 65530 - 262144 | int | The maximum number of memory map areas a process may have. |
编号 | 参数 | 默认值 | 允许的值 / 范围 | 参数类型 | 范围 |
1 | "kernel.threads-max" | 4194304 | 4096 - 4194304 | int | The system-wide limit on the number of threads (tasks) that can be created on the system. |
2 | "kernel.pid_max" | 4194304 | 4096 - 4194304 | int | PIDs greater than this value are not allocated; thus, the value in this file also acts as a system-wide limit on the total number of processes and threads. |
本页内容是否解决了您的问题?