Skip to content

Commit 1d94b16

Browse files
authored
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.
1 parent 4e15e8f commit 1d94b16

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

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

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,22 @@ in this struct. Make sure the Kubelet has read permissions on the file.
2828

2929
Here is an example of what this file might look like:
3030
```
31-
apiVersion: kubelet.config.k8s.io/v1beta1
32-
kind: KubeletConfiguration
33-
address: "192.168.0.8"
34-
port: 20250
35-
serializeImagePulls: false
36-
evictionHard:
37-
memory.available: "200Mi"
31+
apiVersion: v1
32+
kind: ConfigMap
33+
metadata:
34+
name: kubelet-config-1.20
35+
namespace: kube-system
36+
data:
37+
kubelet: |
38+
apiVersion: kubelet.config.k8s.io/v1beta1
39+
kind: KubeletConfiguration
40+
address: "192.168.0.8"
41+
port: 20250
42+
serializeImagePulls: false
43+
evictionHard:
44+
memory.available: "200Mi"
45+
~
46+
3847
```
3948

4049
In the example, the Kubelet is configured to serve on IP address 192.168.0.8 and port 20250, pull images in parallel,

0 commit comments

Comments
 (0)