I want to reset the microk8s config of my node. Basically what I want is that all people that ever had access to the config will not be able to connect to the server with it anymore and that a new config is created. How do I renew this?
This is how i will do.
- first generate a new token like this.
admin_token=$(openssl rand -base64 32 | ${SNAP}/usr/bin/base64)
-
Get the value of the
admin_token
-
replace the token in the row with
admin
In the file/var/snap/microk8s/current/credentials/known_tokens.csv
-
Dont forget to also replace the token in the file
/var/snap/microk8s/current/credentials/client.config
-
Restart microk8s.
Don’t forget to backup any file you are going to modify.