MLOps/Doker & Kubernetes

Udemy CKA 강의 정리 98: Solution - Commands and Arguments (optional)

공부하는 무니 2023. 1. 12. 00:05
반응형

해당 내용은 Udemy의 Certified Kubernetes Administrator (CKA) with Practice Tests 강의를 공부한 내용입니다. 내용을 그대로 번역하기보다는, 제가 이해하기 쉬운 대로 수정한 부분들이 있습니다.

⚠️ 영어 독해가 많이 부족합니다. 틀린 내용이 있으면 알려주시면 감사하겠습니다.


Q1. How many PODs exist on the system?

답: 1

 

Q2. What is the command used to run the pod ubuntu-sleeper?

답: sleep 4800

 

Q3. Create a pod with the ubuntu image to run a container to sleep for 5000 seconds. Modify the file ubuntu-sleeper-2.yaml.

vi ubuntu-sleeper-2

Q4. Create a pod using the file named ubuntu-sleeper-3.yaml. There is something wrong with it. Try to fix it!

vi ubuntu-sleeper-3.yaml

Q5. Update pod ubuntu-sleeper-3 to sleep for 2000 seconds.

kubectl edit pod ubuntu-sleep-3

Q6. Inspect the file Dockerfile given at /root/webapp-color directory. What command is run at container startup?

답: python app.py

 

Q7. Inspect the file Dockerfile2 given at /root/webapp-color directory. What command is run at container startup?

답: python app.py --color red

 

Q8. Inspect the two files under directory webapp-color-2. What command is run at container startup?

답: --color green

 

Q9. Inspect the two files under directory webapp-color-3. What command is run at container startup?

답: python app.py --color pink

Q10. Create a pod with the given specifications. By default it displays a blue background. Set the given command line arguments to change it to green.

반응형