Cluster using customize kubelet root directory
- Set up a cluster using a customized kubelet root directory.
For example, launching k3s:
- Controller:
k3s server --kubelet-arg "root-dir=/var/lib/longhorn-test"
- Worker:
k3s agent --kubelet-arg "root-dir=/var/lib/longhorn-test"
- Install
Longhorn
with env KUBELET_ROOT_DIR
in longhorn-driver-deployer
being set to the corresponding value.
- Launch a pod using Longhorn volumes via StorageClass. Everything should work fine.
- Delete the pod and the PVC. Everything should be cleaned up.
[Edit]