snap alias microk8s.kubectl kubectl
能夠用snap unalias
撤銷別名指定nginx
microk8s status --wait-ready
能夠用 microk8s enable --help
查看可用的插件docker
microk8s enable dns dashboard ingress
microk8s.inspect
一般會提示bash
WARNING: IPtables FORWARD policy is DROP. Consider enabling traffic forwarding with: sudo iptables \-P FORWARD ACCEPT
使用ufw關閉防火牆端口ide
sudo ufw allow in on cbr0 && sudo ufw allow out on cbr0 sudo ufw default allow routed sudo iptables \-P FORWARD ACCEPT
kubectl create deployment nginx --image=nginx
--image
爲指定的docker鏡像地址插件