Micro k8s
配置用户组
sudo usermod -a -G microk8s wayne
sudo chown -R wayne ~/.kube
newgrp microk8s
验证安装
microk8s status --wait-ready
microk8s kubectl get all --all-namespaces
Dashboard
# 启用
microk8s enable dns dashboard
# 转发暴露端口
microk8s kubectl port-forward -n kube-system service/kubernetes-dashboard 10443:443
# 获取token
microk8s kubectl describe secret -n kube-system microk8s-dashboard-token
kubectl config
microk8s config
kubectl & alias
alias mkctl="microk8s kubectl"
reset
microk8s reset