Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Kubernetes and Cloud Native Associate · Linux Foundation
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
The two primary modes for Service discovery within a Kubernetes cluster are DNS-based Service Discovery and Environment Variable-based Service Discovery. DNS-based Service Discovery uses the built-in DNS server to provide DNS names for Services, while Environment Variable-based Service Discovery injects environment variables containing Service information into Pods. These mechanisms enable Pods to discover and communicate with Services within the cluster.
Environment variables and DNS is the answer.
https://www.densify.com/kubernetes-autoscaling/kubernetes-service-discovery/ .. please see conclusion