mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-15 17:50:49 +00:00
helm: fix handling of topologyUpdater.kubeletConfigPath
By default we use the configz API endpoint so no mounts are needed.
This commit is contained in:
parent
33a1e3d114
commit
ed8a87b131
1 changed files with 8 additions and 5 deletions
|
@ -58,9 +58,14 @@ spec:
|
||||||
{{- if .Values.topologyUpdater.podSetFingerprint }}
|
{{- if .Values.topologyUpdater.podSetFingerprint }}
|
||||||
- "-pods-fingerprint"
|
- "-pods-fingerprint"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.topologyUpdater.kubeletConfigPath | empty | not }}
|
||||||
|
- "-kubelet-config-uri=file:///host-var/kubelet-config"
|
||||||
|
{{- end }}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
{{- if .Values.topologyUpdater.kubeletConfigPath | empty | not }}
|
||||||
- name: kubelet-config
|
- name: kubelet-config
|
||||||
mountPath: /host-var/lib/kubelet/config.yaml
|
mountPath: /host-var/kubelet-config
|
||||||
|
{{- end }}
|
||||||
- name: kubelet-podresources-sock
|
- name: kubelet-podresources-sock
|
||||||
mountPath: /host-var/lib/kubelet/pod-resources/kubelet.sock
|
mountPath: /host-var/lib/kubelet/pod-resources/kubelet.sock
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
|
@ -82,13 +87,11 @@ spec:
|
||||||
- name: host-sys
|
- name: host-sys
|
||||||
hostPath:
|
hostPath:
|
||||||
path: "/sys"
|
path: "/sys"
|
||||||
|
{{- if .Values.topologyUpdater.kubeletConfigPath | empty | not }}
|
||||||
- name: kubelet-config
|
- name: kubelet-config
|
||||||
hostPath:
|
hostPath:
|
||||||
{{- if .Values.topologyUpdater.kubeletConfigPath | empty | not }}
|
|
||||||
path: {{ .Values.topologyUpdater.kubeletConfigPath }}
|
path: {{ .Values.topologyUpdater.kubeletConfigPath }}
|
||||||
{{- else }}
|
{{- end }}
|
||||||
path: /var/lib/kubelet/config.yaml
|
|
||||||
{{- end }}
|
|
||||||
- name: kubelet-podresources-sock
|
- name: kubelet-podresources-sock
|
||||||
hostPath:
|
hostPath:
|
||||||
{{- if .Values.topologyUpdater.kubeletPodResourcesSockPath | empty | not }}
|
{{- if .Values.topologyUpdater.kubeletPodResourcesSockPath | empty | not }}
|
||||||
|
|
Loading…
Reference in a new issue