Skip to content

xDmitriev/wallarm-ingress-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages