Udemy의 Certified Kubernetes Administrator (CKA) with Practice Tests 강의의 42. Practice Test - Namespaces , 42. Practice Test - Namespaces 챕터를 공부한 내용으로 강의 내용과 다를 수 있습니다. 정확한 내용은 강의를 들으시는 것을 추천드립니다.
https://uklabs.kodekloud.com/topic/practice-test-namespaces-2/ 에서 핸즈온을 사용 할 수 있다.
Q1. How many Namespaces exist on the system?
A. kubectl get namespaces
Q2. How many pods exist in the researchnamespace?
A. kubectl get pods --namespace=research
Q3. Create a POD in the finance namespace.
A. kubectl run redis --image=redis -n finance
kubectl run 은 pod를 생성해주는 명령어이다.
Q4. Which namespace has the bluepod in it?
A. kubectl get pods --all-namespaces
Q5. Access the Blueweb application using the link above your terminal!
Q6. What DNS name should the Blueapplication use to access the database db-service in its own namespace - marketing?
A. 같은 namespace에 위치해 db-service로만으로도 부를 수 있다.
Q7. What DNS name should the Blue application use to access the database db-service in the dev namespace?
A. db-service.dev.svc.cluster.local
'IT 강의 > 도커 쿠버' 카테고리의 다른 글
[NHN 교육] NHN Cloud로 kubernetes 기초 다지기 (0) | 2024.07.08 |
---|---|
[CKA 강의 요약] Namespaces (2) | 2024.06.27 |
[CKA 강의 요약] Practice Test - Services (0) | 2024.06.27 |
[CKA 강의 요약] Services - Loadbalancer (0) | 2024.06.25 |
[CKA 강의 요약] Services Cluster IP (0) | 2024.06.20 |