Skip to content

How to configure local-path provisioner? #787

Answered by iwilltry42
Data-drone asked this question in Q&A
Discussion options

You must be logged in to vote

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:

  • edit the configmap after cluster creation: kubectl edit cm -n kube-system local-path-config (config.json key)
  • mount your own config into the auto-deploy manifests directory before creating the cluster: 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)
  • disable the deployment upfront and later deploy your own version: k3d cluster create --k3s-arg "--disable=local-storag…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Data-drone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #785 on October 11, 2021 14:02.