Exam KCNA Topic 1 Question 29 Discussion
Actual exam question for Linux Foundation's KCNA exam
Question #: 29
Topic #: 1
Question #: 29
Topic #: 1
You have a Kubernetes cluster with multiple nodes, and you want to ensure that traffic is routed to pods based on labels. Which networking feature should you use?
Suggested Answer: C Vote an answer
The correct answer is 'Service of type 'ClusterlP' with selectors'. This approach allows you to define a Service with a 'ClusterlP' and specify a selector that matches pods with specific labels. Kubernetes will then route traffic to pods that have the matching labels. 'NetworkPolicy' is used for network access control, not for load balancing based on labels. 'Service of type 'LoadBalancer" is used for exposing services to the external network. 'Ingress resource' manages external traffic to the cluster 'Pod affinity and anti-affinity' are used for scheduling pods on specific nodes based on labels.
by Yehudi at May 17, 2025, 01:55 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).