We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f8c722 commit 6a4e10dCopy full SHA for 6a4e10d
k8s命令
@@ -0,0 +1,8 @@
1
+K8S进入容器方法
2
+前言
3
+ k8s如何进入一个pod里有多个容器的方法
4
+方法1
5
+ kubectl --namespace=kube-system exec -it kube-dns-1336009800-15b1h --container nginx -- sh
6
+或
7
+ kubectl --namespace=kube-system exec -it kube-dns-1336009800-15b1h -c nginx -- sh
8
+注释:--namespace 为命名空间kube-dns为pod的名字,-c或-container为Pod里其中的一个容器名字
0 commit comments