Open
Description
Summary
As discussed in last community meeting a change in the tutorial section under this link in which while getting a error when installing microk8s it is advised to - "To validate the changes you can exit the VM’s shell and log in again." which is not a good practice and can be replaced by using newgrp.
What Should Happen Instead?
Instead of using exit command, a directory named ".kube" can be made if doesn't exit in the current VM and then the commands shown in the screenshot should be copy and pasted in the terminal followed by newgrp microk8s
Reproduction Steps
- Launch a new VM using
multipass launch --name <vm-name> --mem 4G --disk 40G
- Shell into that VM using
multipass shell <vm name>
- Install microk8s in that VM using
sudo snap install microk8s --classic
- Run
microk8s status --wait-ready
Can you suggest a fix?
To overcome this error usage of newgrp is a better than using exit and re-enter
Are you interested in contributing with a fix?
yes