Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replacement of exit command with creation of .kube directory and usage of newgrp #3779

Open
SuperAayush opened this issue Feb 18, 2023 · 1 comment
Labels
kind/docs Things which may be resolved by or have a docs component triage/good-first-issue Good for newcomers

Comments

@SuperAayush
Copy link

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.

Screenshot 2023-02-19 at 12 35 44 AM

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

  1. Launch a new VM using multipass launch --name <vm-name> --mem 4G --disk 40G
  2. Shell into that VM using multipass shell <vm name>
  3. Install microk8s in that VM using sudo snap install microk8s --classic
  4. 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

@sachinkumarsingh092 sachinkumarsingh092 added triage/good-first-issue Good for newcomers kind/docs Things which may be resolved by or have a docs component labels Feb 19, 2023
@faizykhalid
Copy link

Hey i was trying to reproduce the suggested steps before i make the edit in docs.
I created a new VM of ubuntu 24.04 on qemu/kvm to test it out.
newgrp microk8s doesn't seem to do the trick i had to do su - ubuntu to make it work. Am i missing something or can we add the solution that worked for me ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/docs Things which may be resolved by or have a docs component triage/good-first-issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants