Skip to content

Commit cf1d34a

Browse files
authored
Merge pull request #35346 from yanrongshi/zh-cn]Update-kubelet-config-file.md
[zh-cn]Update kubelet-config-file.md
2 parents 003d920 + 3f27598 commit cf1d34a

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

content/zh-cn/docs/tasks/administer-cluster/kubelet-config-file.md

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,22 @@ Here is an example of what this file might look like:
4949

5050
下面是一个 Kubelet 配置文件示例:
5151
```
52-
apiVersion: kubelet.config.k8s.io/v1beta1
53-
kind: KubeletConfiguration
54-
address: "192.168.0.8",
55-
port: 20250,
56-
serializeImagePulls: false,
57-
evictionHard:
58-
memory.available: "200Mi"
52+
apiVersion: v1
53+
kind: ConfigMap
54+
metadata:
55+
name: kubelet-config-1.20
56+
namespace: kube-system
57+
data:
58+
kubelet: |
59+
apiVersion: kubelet.config.k8s.io/v1beta1
60+
kind: KubeletConfiguration
61+
address: "192.168.0.8"
62+
port: 20250
63+
serializeImagePulls: false
64+
evictionHard:
65+
memory.available: "200Mi"
5966
```
6067

61-
6268
<!--
6369
In the example, the Kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel,
6470
and evict Pods when available memory drops below 200Mi.

0 commit comments

Comments
 (0)