建立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