If you have a microk8s cluster without RBAC enabled (which is the default setting) be very careful
In my case, I have turned it on microk8s enable rbac to see how it will forbid access
But then I realized that I did not check behavior without RBAC so decided to turn it off
And as you can guess with RBAC all roles and role bindings were also removed so immediately I have lose all components I tried to configure (e.g. ingress, cert-manager, etc)
Turning RBAC back again won’t recover loosen objects, turning off/on corrupted components is also not possible, for example, ha-cluster complains that if I will do it cluster will be wiped out
So I did break everything in a single command, thankfully it was my playground lab
Will be nice if microk8s before removing RBAC will notify the user what will happen and ask confirmation
Hi! Can you provide a little more information about the MicroK8s version you are running? This should not happen, after disabling RBAC the MicroK8s cluster should not break.
Can you also provide a little more information about what exactly happened in this case?
Indeed seems like it might be a solution for such cases, but at the very end it seems that with microk8s RBAC is something should be enabled from start and never touched again later
PS: At moment wish not to touch it again to check if temp will be saved