2021-08-26 16:09:29 +01:00
|
|
|
- op: add
|
|
|
|
path: /spec/template/spec/volumes
|
|
|
|
value:
|
|
|
|
- name: host-sys
|
|
|
|
hostPath:
|
|
|
|
path: "/sys"
|
|
|
|
- name: kubelet-podresources-conf
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/config.yaml
|
|
|
|
- name: kubelet-podresources-sock
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/pod-resources/kubelet.sock
|
2021-09-24 21:59:33 +03:00
|
|
|
|
2021-08-26 16:09:29 +01:00
|
|
|
- op: add
|
|
|
|
path: /spec/template/spec/containers/0/volumeMounts
|
|
|
|
value:
|
|
|
|
- name: kubelet-podresources-conf
|
|
|
|
mountPath: /host-var/lib/kubelet/config.yaml
|
|
|
|
- name: kubelet-podresources-sock
|
|
|
|
mountPath: /host-var/lib/kubelet/pod-resources/kubelet.sock
|
|
|
|
- name: host-sys
|
|
|
|
mountPath: /host-sys
|
2021-09-24 21:59:33 +03:00
|
|
|
|
|
|
|
- op: add
|
|
|
|
path: /spec/template/spec/containers/0/args/-
|
|
|
|
value: "-kubelet-config-file=/host-var/lib/kubelet/config.yaml"
|
|
|
|
|
|
|
|
- op: add
|
|
|
|
path: /spec/template/spec/containers/0/args/-
|
|
|
|
value: "-podresources-socket=/host-var/lib/kubelet/pod-resources/kubelet.sock"
|