Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 972 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 972 Bytes

AKS-AGIC-tf-test

Terraform flow

  1. Create agic-test-rg resource group, virtual network and subents(node, pod, agic)
  2. Create application gateway and public IP
  3. Create AKS cluster with AGIC id.

Prerequisites

  • Service principal with Contributor role for the subscription for the AKS cluster.
    • Retrieve client_id and client_secret and add them to variables.tf file.
  • Follow this documentation to enable private ip only preview for Application Gateway Standard V2. This settings must be done before terraform apply.

After terraform apply

Deploy sample app and ingress

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>