kubectl
command line tool for k8s cluster
pronounced as “kube control”
安装 kubectl,参考官方文档:https://kubernetes.io/docs/tasks/tools/install-kubectl-windows/
bash
kubectl get all
kubectl get node
kubectl get namespace
kubectl get configmap
kubectl get secret
kubectl get service
kubectl get pod
kubectl logs portname
kubectl apply -f xxx.yaml