Update kubelet-config-file.md

trying to fit it to yaml style, while making it work on my system required quite a change. I'm not sure if this is appropriate to change it so much.
This commit is contained in:
bhangra
2022-07-25 18:02:21 +09:00
committed by GitHub
parent 4e15e8f2ae
commit 1d94b16b27
@@ -28,13 +28,22 @@ in this struct. Make sure the Kubelet has read permissions on the file.
Here is an example of what this file might look like: Here is an example of what this file might look like:
``` ```
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,