Pods 실습
Q1. How many pods
exist on the system? In the current(default) namespace.
Q2. Create a new pod with the nginx
image.
Q3. How many pods are created now? Note: We have created a few more pods. So please check again.
Q4. What is the image used to create the new pods? You must look at one of the new pods in detail to figure this out.
Q5. Which nodes are these pods placed on? You must look at all the pods in detail to figure this out.
Q6. How many containers are part of the pod webapp
? Note: We just created a new POD. Ignore the state of the POD for now.
Q7. What images are used in the new webapp
pod? You must look at all the pods in detail to figure this out.
Q8. What is the state of the container agentx
in the pod webapp
? Wait for it to finish the ContainerCreating
state
Q9. Why do you think the container agentx
in pod webapp
is in error? Try to figure it out from the events section of the pod.
Q10. What does the READY
column in the output of the kubectl get pods
command indicate?
Q11. Delete the webapp
Pod. Once deleted, wait for the pod to fully terminate.
Q12. Create a new pod with the name redis
and with the image redis123
. Use a pod-definition YAML file. And yes the image name is wrong!
Q13. Now change the image on this pod to redis
. Once done, the pod should be in a running
state.
댓글