kubectl
kubectl describe node 节点信息
kubectl cluster-info 查看主机ip DNS信息
kubectl run nginx-deploy --image=nginx:1.14-alpine --port=80 --replicas=1 --dry-run=true
kubectl get deployment
kubectl get pods -o wide
kubectl get pods -o wide -n kube-system
kubectl delete pods 镜像id 删除pod
创建Service
kubectl expose deployment nginx-deploy --name=nginx --port=80 --target-port=80 --protocol=TCP
kubectl get svc -n kube-system
kubectl describe svc nginx
编辑Service
kubectl edit svc nginx
删除
kubectl delete svc nginx
//yum install bind-utils
//dig -t A nginx @ip