Merge pull request #28830 from chenxuc/kubelet-config-file

improve example for kubelet config file
pull/29138/head
Kubernetes Prow Robot 2021-07-27 18:35:35 -07:00 committed by GitHub
commit 3e806911c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -30,11 +30,15 @@ Here is an example of what this file might look like:
``` ```
apiVersion: kubelet.config.k8s.io/v1beta1 apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration kind: KubeletConfiguration
address: "192.168.0.8",
port: 20250,
serializeImagePulls: false,
evictionHard: evictionHard:
memory.available: "200Mi" memory.available: "200Mi"
``` ```
In the example, the Kubelet is configured to evict Pods when available memory drops below 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.
All other Kubelet configuration values are left at their built-in defaults, unless overridden All other Kubelet configuration values are left at their built-in defaults, unless overridden
by flags. Command line flags which target the same value as a config file will override that value. by flags. Command line flags which target the same value as a config file will override that value.