Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.14 KB

File metadata and controls

55 lines (40 loc) · 1.14 KB

Setup HAProxy Ingress

Using this Setup you can:

  • Deploy ingress controller and ingress
  • Get ingress controller and ingress status
  • Delete ingress controller and ingress

Requirements

  • Azure subscription
  • Landing Zone
  • AKS
  • Kubectl
  • Helm
  • Environment Variables
# Required Environment Variables
# Define if not defined or override the values of required environments variables.
# You can write them in a file and run "source ${filename}" for reuse.
export APP_NAME=ratingsapp
export INGRESS_NAME=haproxy
## Make setup.sh executable
chmod +x ./setup.sh

## To see available setup.sh options
./setup.sh help

## Deploy Ingress controller
./setup.sh deployctl

## Deploy Ingress for app
./setup.sh deployingress

## Review ingress controller status
./setup.sh statusctl

## Review ingress status for app
./setup.sh statusingress

## Get HAProxy ingress service public ip and browse
INGIP=$(kubectl get service haproxy-ingress --namespace haproxy|grep LoadBalancer| awk '{print $4}')
curl -I -H 'Host: ratings-haproxy.localhost' "http://$INGIP"

## Delete Ingress controller
./setup erasectl

## Delete Ingress
./setup eraseingress