diff --git a/deploy/helm/templates/node.yaml b/deploy/helm/templates/node.yaml index 8bdbca6..b3f33ba 100644 --- a/deploy/helm/templates/node.yaml +++ b/deploy/helm/templates/node.yaml @@ -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 }} diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index 473a9ab..5cc071e 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -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: { }