- Install Azure CLI using installation document
- Install Terraform CLI using installation document
- Get Wallarm API token and put it in
helm-values/internal-ingress-values.yaml
file - Deploy Terraform code:
az login
cd terraform/azure
terraform init
terraform apply
- Get cluster config
az account set --subscription ef8d68e3-3507-49d5-8672-194c86853309
az aks get-credentials --admin --name $(terraform output -raw cluster_name) --resource-group $(terraform output -raw rg_name)
- Perform test
LB_IP=$(kubectl get svc -l "app.kubernetes.io/component=controller" -n ingress-nginx -o=jsonpath='{.items[0].status.loadBalancer.ingress[0].ip}')
echo "Load Balancer IP: ${LB_IP}"
curl -H "Host: myapp.com" ${LB_IP}/get
curl -H "Host: myapp.com" ${LB_IP}/'?q=union+select+1'
Test is successfully done if last request get 403 Forbidden
response
- Cleanup resources
terraform destroy