default storage is overwritten on k3s restart #293
-
Expected BehaviorAfter modifying the 'local-path' storage class to Current BehaviorIf I modify 'local-path' storage class, it's overwritten after k3s restart. Steps to Reproduce
Context (variables)Running 3 ubuntu VM in proxmox with 1 master and 2 workers Hardware: Possible SolutionThe issue seem to be caused by k3s recreating the manifests files that we delete in the ansible. For the moment, after running ansible the first time, I've set Another solution seem to modify the manifest file instead of deleting it ( k3s-io/k3s#3441 )
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is actually the default behavior of k3s. Check here for the manifest: All of the manifests here are reapplied each time the k3s service restarts. I think you modify it there. If you want to disable it when installing, add this arg Or you can delete the storage class as well as the manifest |
Beta Was this translation helpful? Give feedback.
This is actually the default behavior of k3s. Check here for the manifest:
/var/lib/rancher/k3s/server/manifests/
All of the manifests here are reapplied each time the k3s service restarts. I think you modify it there.
If you want to disable it when installing, add this arg
--no-deploy local-storage
Or you can delete the storage class as well as the manifest