Q1. How many namespace exist?
controlplane ~ ➜ k get namespaces
Q2. How many pods exist in the research namespace?
k get pods --namespace=research
Q3. Create a POD in the finance namespace. Use the spec given below.
-
Name: redis
-
Image Name: redis
k run redis --image=redis -n finance
Q4. Which namespace has the blue pod in it?
k get pods --all-namespaces | grep blue
Q5. Access the Blue web application using the link above your terminal!!
#특정 namespace pods상세 보기
k describe pods -n audacity
Q6. What DNS name should the Blue application use to access the database db-service in its own namespace - marketing?
k get pods -n marketing
k get svc -n marketing
Q7. What DNS name should the Blue application use to access the database db-service in the dev namespace?
>> Since the blue application and the db-service are in different namespaces.
In this case, we need to use the service name along with the namespace to access the database.
The FQDN (fully Qualified Domain Name) for the db-service in this example would be
db-service.dev.svc.cluster.local.
Note: You can also access it using the service name and namespace like this: db-service.dev
'STUDY > Data Engineering' 카테고리의 다른 글
[kodekloud] 01 Core Concepts : Imperative-Commands 풀이 (0) | 2023.01.21 |
---|---|
[kodekloud] 01 Core Concepts : Service 풀이 (0) | 2023.01.21 |
14. CKA udemy 강의 정리 - Section 7 [Networking] (0) | 2023.01.21 |
13. CKA udemy 강의 정리 - Section 7 [Security] (0) | 2023.01.18 |
12. CKA udemy 강의 정리 - Section 6 [Cluster Maintenance] (0) | 2023.01.14 |