Skip to content

Instantly share code, notes, and snippets.

@zoonderkins
Created November 3, 2024 14:07
Show Gist options
  • Save zoonderkins/c955532af974d3a6175aed2a0b2babb3 to your computer and use it in GitHub Desktop.
Save zoonderkins/c955532af974d3a6175aed2a0b2babb3 to your computer and use it in GitHub Desktop.
k0s note

k0s storage class


    Stop the k0s service.

sudo k0s stop

    Reset previous installation that was done without your customized config file:

sudo k0s reset

    Re-install k0s with your new config file and with --enable-worker flag -> so that single node k0s with controller and worker functions will be installed again:

sudo k0s install controller --enable-worker -c /etc/k0s/k0s.yaml

    Start the k0s service:

sudo k0s start

    After a few seconds, check that two storage classes are enabled on the cluster for you to use:

sudo k0s kubectl get storageclass

https://serverfault.com/questions/1091569/how-do-i-configure-storage-class-on-an-existing-k0s-cluster

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment