AZ-204 · Question #136
Drag and Drop Question You are preparing to deploy an application to an Azure Kubernetes Service (AKS) cluster. The application must only be available from within the VNet that includes the cluster…
The correct answer is Service; azure-load-balancer-internal; LoadBalancer. To expose an application internally within a VNet in AKS, you need a Kubernetes 'Service' resource with type 'LoadBalancer' and the annotation 'service.beta.kubernetes.io/azure-load-balancer-internal: true' (represented by the 'azure-load-balancer-internal' segment). This…
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- Service
- azure-load-balancer-internal
- LoadBalancer
Explanation
To expose an application internally within a VNet in AKS, you need a Kubernetes 'Service' resource with type 'LoadBalancer' and the annotation 'service.beta.kubernetes.io/azure-load-balancer-internal: true' (represented by the 'azure-load-balancer-internal' segment). This combination tells Azure to provision an internal Azure Load Balancer with a private IP address instead of a public one, restricting access to within the VNet. The annotation is the critical piece that prevents a public-facing endpoint from being created.
Topics
Community Discussion
No community discussion yet for this question.
