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:
@@ -28,6 +28,13 @@ 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: v1
|
||||||
|
kind: ConfigMap
|
||||||
|
metadata:
|
||||||
|
name: kubelet-config-1.20
|
||||||
|
namespace: kube-system
|
||||||
|
data:
|
||||||
|
kubelet: |
|
||||||
apiVersion: kubelet.config.k8s.io/v1beta1
|
apiVersion: kubelet.config.k8s.io/v1beta1
|
||||||
kind: KubeletConfiguration
|
kind: KubeletConfiguration
|
||||||
address: "192.168.0.8"
|
address: "192.168.0.8"
|
||||||
@@ -35,6 +42,8 @@ port: 20250
|
|||||||
serializeImagePulls: false
|
serializeImagePulls: false
|
||||||
evictionHard:
|
evictionHard:
|
||||||
memory.available: "200Mi"
|
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user