mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-05 16:27:05 +00:00
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).
This commit is contained in:
parent
06e7a784f3
commit
e342076a5e
4 changed files with 17 additions and 5 deletions
|
@ -22,8 +22,4 @@ spec:
|
||||||
command:
|
command:
|
||||||
- "nfd-topology-updater"
|
- "nfd-topology-updater"
|
||||||
args:
|
args:
|
||||||
- "--kubelet-config-file=/host-var/lib/kubelet/config.yaml"
|
- "-server=nfd-master:8080"
|
||||||
- "--podresources-socket=/host-var/lib/kubelet/pod-resources/kubelet.sock"
|
|
||||||
- "--sleep-interval=3s"
|
|
||||||
- "--watch-namespace=*"
|
|
||||||
- "--server=nfd-master:8080"
|
|
||||||
|
|
|
@ -10,3 +10,7 @@ patches:
|
||||||
target:
|
target:
|
||||||
labelSelector: app=nfd
|
labelSelector: app=nfd
|
||||||
name: nfd-topology-updater
|
name: nfd-topology-updater
|
||||||
|
- path: sleep-interval-flag.yaml
|
||||||
|
target:
|
||||||
|
labelSelector: app=nfd
|
||||||
|
name: nfd-topology-updater
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
- op: add
|
||||||
|
path: /spec/template/spec/containers/0/args/-
|
||||||
|
value: "-sleep-interval=3s"
|
|
@ -10,6 +10,7 @@
|
||||||
- name: kubelet-podresources-sock
|
- name: kubelet-podresources-sock
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/kubelet/pod-resources/kubelet.sock
|
path: /var/lib/kubelet/pod-resources/kubelet.sock
|
||||||
|
|
||||||
- op: add
|
- op: add
|
||||||
path: /spec/template/spec/containers/0/volumeMounts
|
path: /spec/template/spec/containers/0/volumeMounts
|
||||||
value:
|
value:
|
||||||
|
@ -19,3 +20,11 @@
|
||||||
mountPath: /host-var/lib/kubelet/pod-resources/kubelet.sock
|
mountPath: /host-var/lib/kubelet/pod-resources/kubelet.sock
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
mountPath: /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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue