Sponsored By
















728x90



### 1. context 확인

kubectl config get-contexts




> Output : 






### 2. **context 변경**

kubectl config use-context [context_nm]




> Output : 







### 3. context 변경확인

kubectl config current-context





### 4. POD 확인

kubectl get pod -n [namespace] // 기본형
kubectl get pod -o wide -n [namespace] // 확장형(상세)




> Output for 확장형(상세): 







### 5. POD 로그확인

kubectl logs -f [pod_nm] -n [namespace]




> Output : 







### 6. POD 접속(sh)

kubectl exec -n [namespace] -it [pod_nm] -- sh




> Output : 







#### ※ 리스트명령어(ls -al)를 통해 접속됨을 확인 할 수 있다





728x90


Sponsored By















+ Recent posts