MLOps/Doker & Kubernetes
Udemy CKA 강의 정리 115: Solution - Init Containers (optional)
공부하는 무니
2023. 1. 13. 04:48
반응형
해당 내용은 Udemy의 Certified Kubernetes Administrator (CKA) with Practice Tests 강의를 공부한 내용입니다. 내용을 그대로 번역하기보다는, 제가 이해하기 쉬운 대로 수정한 부분들이 있습니다.
⚠️ 영어 독해가 많이 부족합니다. 틀린 내용이 있으면 알려주시면 감사하겠습니다.
(보충필요)
Q1. Identify the pod that has an initContainer configured.
$ kubectl get pods $ kubectl describe pods
Q2. What is the image used by the initContainer on the blue pod?
$ kubectl describe pods blue
Q3. What is the state of the initContainer on pod blue?
$ kubectl describe pod blue
Q4. Why is the initContainer terminated? What is the reason?
$ kubectl describe pod blue
Q5. We just created a new app named purple. How many initContainers does it have?
$ kubectl describe pod purple
Q6. What is the state of the POD?
$ kubectl describe pod purple
Q7. How long after the creation of the POD will the application come up and be available to users?
$ kubectl describe pod purple
Q8. Update the pod red to use an initContainer that uses the busybox image and sleeps for 20 seconds
$ kubectl get pod red -o yaml > red.yaml $ kubectl delete pod red
yaml 업데이트
$ kubectl create -f red.yaml
Q9. A new application orange is deployed.
$ kubectl describe pod orange $ kubectl get pod orange -o yaml > orange.yaml
$ kubectl delete pod orange
yaml 업데이트
$ kubectl create -f orange.yaml
반응형