创建

kubectl create -f dashboard.yaml

删除

kubectl delete -f dashboard.yaml

查看pods

kubectl get pods --namespace=kube-system

查看pod明细

kubectl describe service/kubernetes-dashboard --namespace="kube-system"

查看pod日志

kubectl logs kubernetes-dashboard-latest-139424868-tdc0t --namespace=kube-system

进入容器终端

kubectl exec -it nginx-controller-527tr -- /bin/bash

运行容器(指定命名空间,数量,镜像名称)

kubectl run con-log-svr --image=docker.prod.prg.com:5000/qiwuiot-prod-con-log-svr --replicas=1 --namespace="qiwuiot-prod"

创建token

kubeadm token create --print-join-command

重置kubeadm

kubeadm reset

 

posted on 2019-06-27 14:55  遥-ZHZ  阅读(494)  评论(0编辑  收藏  举报