Skip to content

Commit

Permalink
docs(k8s): non-standard kubelet dir (k0s, microk8s) (#536)
Browse files Browse the repository at this point in the history
docs: non-standard kubelet dir (k0s, microk8s)
  • Loading branch information
apricote authored Nov 8, 2023
1 parent cb78314 commit 2669079
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions docs/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2669079

Please sign in to comment.