學習 Kubernetes、MicroK8s 的筆記
1 | snap install microk8s --classic |
1 | microk8s.start |
1 | ~$ sudo snap alias microk8s.kubectl kubectl |
1 | ~$ source <(kubectl completion zsh) |
##
~$ 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}')