Adjust instructions for K3s Storage Configuration#1206
Open
Zaustie wants to merge 2 commits intoelement-hq:mainfrom
Open
Adjust instructions for K3s Storage Configuration#1206Zaustie wants to merge 2 commits intoelement-hq:mainfrom
Zaustie wants to merge 2 commits intoelement-hq:mainfrom
Conversation
benbz
requested changes
Apr 1, 2026
Member
benbz
left a comment
There was a problem hiding this comment.
Thanks for raising.
As I understand it, K3S_DATA_DIR impacts all k3s state and not just the local path provisioner storage.
I'm happy for this to change however
- It should remain in the same place in the advanced docs
- It should mention the default location of
/var/lib/rancher/k3s
Author
|
Oh yeah that is a good point, I'll just add it as an alternative to the original section in the advanced part of the instructions. I've also added the implementation I've actually ended up using by mounting my drive to /var during OS installation. |
benbz
approved these changes
Apr 2, 2026
benbz
reviewed
Apr 2, 2026
| K3s by default deploys the storage in `/var/lib/rancher/k3s/storage/`. If you want to change the path, you will have to run the K3s setup with the parameter `--default-local-storage-path <your path>`. | ||
|
|
||
|
|
||
| If you do not mind modifying the you storage path for the entirey of K3s you can also adjust the `K3S_DATA_DIR` environment variable before installing K3s using |
Member
There was a problem hiding this comment.
Suggested change
| If you do not mind modifying the you storage path for the entirey of K3s you can also adjust the `K3S_DATA_DIR` environment variable before installing K3s using | |
| If you do not mind modifying the you storage path for the entirety of K3s you can also adjust the `K3S_DATA_DIR` environment variable before installing K3s using |
Member
|
I'm happy for this to go out without a changelog entry, but if you'd like it mentioned then |
dyff of changes in rendered templates of CI manifestsNo changes in rendered templates |
Author
|
I'm fine with it either way. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The K3s storage path can be adjusted easily by setting the
K3S_DATA_DIRenvironment variable before installing K3s.As a sidenote this should correspond to the DATADIR variable mentioned in the synapse configuration option for media_store_path and related options.