Skip to content

Commit b43d6c9

Browse files
authored
Merge pull request #35340 from kubernetes/revert-35095-patch-1
Remove commas from kubelet configuration example and add suggested changes.
2 parents 813669e + c75f5c3 commit b43d6c9

File tree

1 file changed

+8
-17
lines changed

1 file changed

+8
-17
lines changed

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

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,14 @@ The configuration file must be a JSON or YAML representation of the parameters
2727
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:
30-
```
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-
30+
```yaml
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"
4738
```
4839
4940
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)