exec

进入到容器了里的shell

$ kubectl get pod
$ kubectl exec -it nginx-deploy-7c4c4f96cd-gj5wh bash