microk8s-notes

學習 Kubernetes、MicroK8s 的筆記

1
snap install microk8s --classic
1
2
microk8s.start
microk8s.stop
1
~$ sudo snap alias microk8s.kubectl kubectl
1
2
~$ source <(kubectl completion zsh)
~$ source <(kubectl completion bash)

##

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

## kubernetes dashboard: Not enough data to create auth info structure.

> kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')