pod에 vim 설치1 kubernetes 실행 중인 pod에 접속해 package 설치 kubectl exec [pod-name] -it -- bash 혹은 kubectl exec [pod-name] -it -- sh 커맨드로 실행 중인 pod에 접속할 수 있다. 실행 중인 pod에 접속한다. [root@kw1 ~]# kubectl exec ksimage-app -it -- bash root@ksimage-app:/app# ls -al total 12 drwxr-xr-x. 1 root root 20 Mar 29 08:51 . drwxr-xr-x. 1 root root 84 Mar 29 08:59 .. -rw-r--r--. 1 root root 268 Mar 29 06:17 Dockerfile -rw-r--r--. 1 root root 204 Mar 29 08:50 ksFlask.py -rw.. 2022. 3. 30. 이전 1 다음 반응형