Skip to content

Commit

Permalink
Merge pull request #57 from Golgautier/Helm-update-for-kubelet-path
Browse files Browse the repository at this point in the history
Update helm for custom kubelet path support
  • Loading branch information
chihyuwu authored Jul 25, 2023
2 parents 90441ac + 629b509 commit 78c814d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions deploy/helm/templates/node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ spec:
fieldRef:
fieldPath: spec.nodeName
- name: REGISTRATION_PATH
value: /var/lib/kubelet/plugins/csi.san.synology.com/csi.sock
value: {{ $.Values.node.kubeletPath }}/plugins/csi.san.synology.com/csi.sock
{{- with .nodeDriverRegistrar }}
image: {{ .image }}:{{ .tag }}
imagePullPolicy: {{ .pullPolicy }}
Expand Down Expand Up @@ -122,7 +122,7 @@ spec:
- name: host-root
mountPath: /host
- name: kubelet-dir
mountPath: /var/lib/kubelet
mountPath: {{ $.Values.node.kubeletPath }}
mountPropagation: Bidirectional
- name: plugin-dir
mountPath: /csi
Expand All @@ -147,15 +147,15 @@ spec:
type: Directory
- name: kubelet-dir
hostPath:
path: /var/lib/kubelet
path: {{ .kubeletPath }}
type: Directory
- name: plugin-dir
hostPath:
path: /var/lib/kubelet/plugins/csi.san.synology.com
path: {{ .kubeletPath }}/plugins/csi.san.synology.com
type: DirectoryOrCreate
- name: registration-dir
hostPath:
path: /var/lib/kubelet/plugins_registry
path: {{ .kubeletPath }}/plugins_registry
type: Directory
{{- end }}
{{- end }}
3 changes: 3 additions & 0 deletions deploy/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ node:
affinity: { }
nodeSelector: { }
tolerations: [ ]
# If your kubelet path is not standard, specify it here :
## example for miocrok8s distrib : /var/snap/microk8s/common/var/lib/kubelet
kubeletPath: /var/lib/kubelet
# Specifies affinity, nodeSelector and tolerations for the snapshotter StatefulSet
snapshotter:
affinity: { }
Expand Down

0 comments on commit 78c814d

Please sign in to comment.