kubectl 常用命令
kubectl
Kubectl get 列出资源
kubectl describe 显示有关资源的详细信息
kubectl logs 打印 pod 和其中容器的日志
kubectl exec 在 pod 中的容器上执行命令
kubectl cluster-info –context kind-kind 切换集群,获取集群信息
1 | # 帮助信息 |
Kubectl get 列出资源
kubectl describe 显示有关资源的详细信息
kubectl logs 打印 pod 和其中容器的日志
kubectl exec 在 pod 中的容器上执行命令
kubectl cluster-info –context kind-kind 切换集群,获取集群信息
1 | # 帮助信息 |