Skip to content

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

Open
@SuperAayush

Description

@SuperAayush

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/docsThings which may be resolved by or have a docs componenttriage/good-first-issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions