MLOps/Doker & Kubernetes

Udemy CKA 강의 정리 45: Practice Test - Imperative Commands

공부하는 무니 2023. 1. 5. 23:20
반응형

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

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


💻
Imperative Commands 실습

Q1. In this lab, you will get hands-on practice with creating Kubernetes objects imperatively.

Q2. Deploy a pod named nginx-podusing the nginx:alpineimage.

Q3. Deploy a redispod using the redis:alpineimage with the labels set to tier=db.

Q4. Create a service redis-serviceto expose the redisapplication within the cluster on port 6379.

Q5. Create a deployment named webappusing the image kodekloud/webapp-colorwith 3replicas.

Q6. Create a new pod called custom-nginxusing the nginximage and expose it on container port 8080.

Q7. Create a new namespace called dev-ns. Use imperative commands.

Q8. Create a new deployment called redis-deploy in the dev-nsnamespace with the redisimage. It should have 2replicas.

Q9. Create a pod called httpdusing the image httpd:alpine in the default namespace. Next, create a service of type ClusterIP by the same name (httpd). The target port for the service should be 80.

반응형