본문 바로가기
MLOps/Doker & Kubernetes

Udemy CKA 강의 정리 178: Solution - Network Policy (optional)

by 공부하는 무니 2023. 1. 21.
반응형

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

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


Q1. How many network policies do you see in the environment?

답: 1

Q2. What is the name of the Network Policy?

답: payroll-policy

Q3. Which pod is the Network Policy applied on?

답: payroll

Q4. What type of traffic is this Network Policy configured to handle?

답: Ingress

Q5. What is the impact of the rule configured on this Network Policy? 

답: Traffic From Internal to Payroll POD is allowed

Q6. What is the impact of the rule configured on this Network Policy?

답: Internal POD can access port 8080 on Payroll POD

Q7. Access the UI of these applications using the link given above the terminal.

Q8. Perform a connectivity test using the User Interface in these Applications to access the payroll-service at port 8080.

답: Only Internal application can access payroll service

Q9. Perform a connectivity test using the User Interface of the Internal Application to access the external-service at port 8080.

답: Successful

Q10. Create a network policy to allow traffic from the Internal application only to the payroll-service and db-service.

vi internal-policy.yaml

 

반응형

댓글