View class command
Node obtain the corresponding service information:
#kubectl GET Nodes
View pod information
kubectl GET PODS
view of the pod specified namespace information
kubectl GET PODS -n namespace
Press the selector name to find the pod kubectl GET pod --selector name = Redis View all pod cluster information kubectl GET PODS --all-Namespaces
Run node to view pods where kubectl GET pods -o Wide
For more information see the pods defined kubectl GET pods -o YAML
View running pod environment variable kubectl exec pod name env designated pod view logs kubectl logs podname scroll through the designated pod log logs kubectl -f podname view service information kubectl GET Services View deployment information kubectl GET deployment designated pod detailed view DESCRIBE PODS information kubectl -dasdeqwew2312 -g6q8c view the deployment history revision rollOut history deployment kubectl / nginx -deployment
the purpose of viewing environmental resources Overview
#kubectl get quota --all-namespaces -o yaml (see cpu and memory, storage volume capacity)
# Kubectl get resourceQuota --all-namespaces = true -o json can also use this command
#kubectl get pvc --namespace = storage volume of the case zp-project view project
# kubectl --namespace=admin get pvc -owide
# View a pod of cpu usage
# echo $TERM
#export TERM=dumb
#top