Complete the code to create an Azure Load Balancer service type in AKS.
apiVersion: v1 kind: Service metadata: name: my-service spec: type: [1] selector: app: my-app ports: - protocol: TCP port: 80 targetPort: 80
To expose AKS pods externally using Azure Load Balancer, the service type must be LoadBalancer.
Complete the command to create an AKS cluster with a managed Azure Load Balancer.
az aks create --resource-group myResourceGroup --name myAKSCluster --node-count 3 --enable-addons [1] --generate-ssh-keys
The http_application_routing addon enables automatic DNS and Azure Load Balancer integration for AKS.
Fix the error in the YAML to correctly expose the service via Azure Load Balancer.
apiVersion: v1 kind: Service metadata: name: my-service spec: type: [1] ports: - port: 80 targetPort: 80 selector: app: my-app
The service type must be LoadBalancer to create an Azure Load Balancer and expose the service externally.
Fill both blanks to define a readiness probe for pods behind the Azure Load Balancer.
readinessProbe:
httpGet:
path: [1]
port: [2]
initialDelaySeconds: 5
periodSeconds: 10The readiness probe commonly uses /healthz path and port 80 to check pod health for Azure Load Balancer.
Fill all three blanks to configure the Azure Load Balancer frontend IP and backend pool in the ARM template snippet.
"resources": [ { "type": "Microsoft.Network/loadBalancers", "name": "myLoadBalancer", "properties": { "frontendIPConfigurations": [ { "name": [1], "properties": { "publicIPAddress": { "id": [2] } } } ], "backendAddressPools": [ { "name": [3] } ] } } ]
The frontend IP configuration name is typically LoadBalancerFrontEnd, the public IP resource ID is required, and the backend pool name is LoadBalancerBackEnd.