Skip to content

Changing the default storage provider? #3445

Closed Answered by ChristianCiach
damacus asked this question in Q&A
Discussion options

You must be logged in to vote

The source of truth seems to be /var/lib/rancher/k3s/server/manifests/local-storage.yaml (

storageclass.kubernetes.io/is-default-class: "true"
) which is re-applied on every reboot of k3s. Looks like you can change the default there.

Unfortunately, this component is not deployed as a helm chart. Otherwise I would point you to the documentation of HelmChartConfig: https://rancher.com/docs/k3s/latest/en/helm/#customizing-packaged-components-with-helmchartconfig

A better option may be to install K3s using --disable local-storage. You can then install the local-storage provider by using a Helm chart if you still need it: http…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@damacus
Comment options

@vincentertainment
Comment options

Answer selected by damacus
Comment options

You must be logged in to vote
1 reply
@fungiboletus
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants
Converted from issue

This discussion was converted from issue #3441 on June 14, 2021 17:51.