1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2025-03-12 19:57:11 +00:00
node-feature-discovery/deployment/components/topology-updater/topologyupdater-mounts.yaml
Markus Lehtonen e342076a5e deployment: clean up base/topologyupdater-daemonset
The base should really have the very bare minimum. Remove all redundant
(at default-value) args and move the others to the specific
topologyupdater kustomize component. This also makes these settings
re-usable in user-specific overlays (that are not based on
topologyupdater-daemonset).
2021-10-06 21:42:31 +03:00

30 lines
872 B
YAML

- 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
- 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
- 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"