Skip to content

Latest commit

 

History

History
28 lines (27 loc) · 1.04 KB

README.md

File metadata and controls

28 lines (27 loc) · 1.04 KB
  1. Install Azure CLI using installation document
  2. Install Terraform CLI using installation document
  3. Get Wallarm API token and put it in helm-values/internal-ingress-values.yaml file
  4. Deploy Terraform code:
az login
cd terraform/azure
terraform init
terraform apply
  1. 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)
  1. 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

  1. Cleanup resources
terraform destroy