[CKAD] Pods
Q. Create a new pod with the NGINX image
A. kubectl run nginx --image=nginx
결과
Q. How many pods are created now?
A. kubectl get pods
결과
Q. What is the image used to create the new pods?
A. kubectl get pods -o wide
A. kubectl describe pod newpods
Q. Which nodes are these pods placed on?
A. kubectl describe pod newpods
Q. What images are used in the new 'webapp' pod?
A. kubectl describe pod webapp
Q. What is the state of the container 'agentx' in the pod 'webapp'?
위 정보로 찾으면 됨
Q. Delete the 'webapp' Pod.
A. kubectl delete pod webapp
Q. Create a new pod with the name 'redis' and with the image 'redis123'
A. kubectl run redis --image=redis123
Q. Now fix the image on the pod to 'redis'
A. kubectl edit pod redis
A. kubectl apply -f ~.yaml