Update kubelet-config-file.md

pull/35346/head
yanrong.shi 2022-07-25 18:15:04 +08:00
parent 9f1bf2c352
commit 3f27598fc3
1 changed files with 14 additions and 8 deletions

View File

@ -49,16 +49,22 @@ Here is an example of what this file might look like:
下面是一个 Kubelet 配置文件示例:
```
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
address: "192.168.0.8",
port: 20250,
serializeImagePulls: false,
evictionHard:
memory.available: "200Mi"
apiVersion: v1
kind: ConfigMap
metadata:
name: kubelet-config-1.20
namespace: kube-system
data:
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,
and evict Pods when available memory drops below 200Mi.