- Create
agic-test-rg
resource group, virtual network and subents(node, pod, agic) - Create application gateway and public IP
- Create AKS cluster with AGIC id.
- Service principal with
Contributor
role for the subscription for the AKS cluster.- Retrieve
client_id
andclient_secret
and add them tovariables.tf
file.
- Retrieve
- Follow this documentation to enable private ip only preview for Application Gateway Standard V2. This settings must be done before
terraform apply
.
kubectl apply -f test-app.yaml
Since we only have private ip, access the application gateway from the AKS cluster's pod.
kubectl run test-pod --image=nginx
kubectl exec -it test-pod -- /bin/bash
curl -I http://<app-gateway-ip>