How to configure local-path provisioner? #787
-
Scope of your requestDo you need... Is it possible to disable or edit the default Describe the solution you'd likeI want to repoint it at a custom folder on the docker nodes either through a config or deploying manually after cluster start. Running k3d 5.0.0 with v1.21.3 k8s nodes |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Data-drone , thanks for asking! There are multiple ways of doing what you want:
I hope this helps :) |
Beta Was this translation helpful? Give feedback.
Hi @Data-drone , thanks for asking!
the
local-path-provisioner
is a "feature" of K3s (i.e. a service that is deployed by default).There are multiple ways of doing what you want:
kubectl edit cm -n kube-system local-path-config
(config.json key)k3d cluster create -v /path/to/your/config.yaml:/var/lib/rancher/k3s/server/manifests/local-storage.yaml
(see original here: https://github.com/k3s-io/k3s/blob/master/manifests/local-storage.yaml)k3d cluster create --k3s-arg "--disable=local-storag…