diff --git a/chart/values.yaml b/chart/values.yaml index 5bf1c6ca12520cd91a749e037d3e413d1036e35b..4764d04353ebe691697365741c4437477dc59b39 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -622,9 +622,10 @@ node: initContainers: [] ## @param node.kubeletDir Location of the /var/lib/kubelet directory as some k8s distribution differ from the standard. - ## e.g: + ## For k0s: ## kubeletDir: /var/lib/k0s/kubelet - ## + ## For microk8s: + ## kubeletDir: /var/snap/microk8s/common/var/lib/kubelet kubeletDir: /var/lib/kubelet ## @section Other Parameters diff --git a/docs/kubernetes/README.md b/docs/kubernetes/README.md index c005446da0691585d475355b3b01044512bc6ce4..42bf2a47dce01746470ba746152e5de9b901ffd7 100644 --- a/docs/kubernetes/README.md +++ b/docs/kubernetes/README.md @@ -83,6 +83,16 @@ kubectl exec -it my-csi-app -- /bin/sh ``` +### Alternative Kubelet Directory + +Some Kubernetes distributions use a non-standard path for the Kubelet directory. +The csi-driver needs to know about this to successfully mount volumes. You can +configure this through the Helm Chart Value `node.kubeletDir`. + +- Standard: `/var/lib/kubelet` +- **k0s**: `/var/lib/k0s/kubelet` +- **microk8s**: `/var/snap/microk8s/common/var/lib/kubelet` + ### Volumes Encrypted with LUKS To add encryption with LUKS you have to create a dedicate secret containing an encryption passphrase and duplicate the default `hcloud-volumes` storage class with added parameters referencing this secret: