Update kubelet-config-file.md

This commit is contained in:
yanrong.shi
2022-07-25 18:15:04 +08:00
parent 9f1bf2c352
commit 3f27598fc3
@@ -49,16 +49,22 @@ Here is an example of what this file might look like:
下面是一个 Kubelet 配置文件示例: 下面是一个 Kubelet 配置文件示例:
``` ```
apiVersion: kubelet.config.k8s.io/v1beta1 apiVersion: v1
kind: KubeletConfiguration kind: ConfigMap
address: "192.168.0.8", metadata:
port: 20250, name: kubelet-config-1.20
serializeImagePulls: false, namespace: kube-system
evictionHard: data:
memory.available: "200Mi" kubelet: |
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
address: "192.168.0.8"
port: 20250
serializeImagePulls: false
evictionHard:
memory.available: "200Mi"
``` ```
<!-- <!--
In the example, the Kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel, In the example, the Kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel,
and evict Pods when available memory drops below 200Mi. and evict Pods when available memory drops below 200Mi.