Skip to content

Instantly share code, notes, and snippets.

@soulmachine
Created February 16, 2021 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soulmachine/0573536afd8b68521233f5b6a168adbc to your computer and use it in GitHub Desktop.
Save soulmachine/0573536afd8b68521233f5b6a168adbc to your computer and use it in GitHub Desktop.
Kubernetes

Install MicroK8s on Linux

sudo snap install microk8s --classic

Check the status while Kubernetes starts

microk8s status --wait-ready

Turn on the services you want

microk8s enable dashboard dns registry istio

Start using Kubernetes

microk8s kubectl get all --all-namespaces

Access the Kubernetes dashboard

microk8s dashboard-proxy

kubectl alias

If you would like to use the MicroK8s kubectl and .kubeconfig file locally, you can do the following:

snap alias microk8s.kubectl kubectl
microk8s.kubectl config view --raw > $HOME/.kube/config

Start and stop Kubernetes

microk8s start
microk8s stop

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment