建立nginx
kubectl create -f dashboard.yaml
刪除docker
kubectl delete -f dashboard.yaml
查看podsbash
kubectl get pods --namespace=kube-system
查看pod明細ui
kubectl describe service/kubernetes-dashboard --namespace="kube-system"
查看pod日誌spa
kubectl logs kubernetes-dashboard-latest-139424868-tdc0t --namespace=kube-system
進入容器終端日誌
kubectl exec -it nginx-controller-527tr -- /bin/bash
運行容器(指定命名空間,數量,鏡像名稱)code
kubectl run con-log-svr --image=docker.prod.prg.com:5000/qiwuiot-prod-con-log-svr --replicas=1 --namespace="qiwuiot-prod"
建立tokenblog
kubeadm token create --print-join-command
重置kubeadmtoken
kubeadm reset