Updated:

less than 1 minute read

명령어

kubectl top pods

kubectl get all
kubectl get pod
kubectl get pod,service

kubectl get all -n istio-system

kubectl get pod -o wide
kubectl get pod -o yaml
kubectl get pod -o json

kubectl get pod --show-labels

kubectl describe [TYPE]/[NAME]

kubectl delete [TYPE]/[NAME]

kubectl logs [POD_NAME]
kubectl logs -f [POD_NAME]

kubectl exec [-it] [POD_NAME] -- [COMMAND]
kubectl exec -it wordpress-5f59577d4d-8t2dg -- bash

kubectl api-resources
kubectl explain pod