Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.14 KB

File metadata and controls

55 lines (41 loc) · 1.14 KB

Setup Nginx 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=nginx

Reference

## 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 nginx ingress service public ip and browse
INGIP=$(kubectl get service nginx-ingress-ingress-nginx-controller --namespace ingress|grep LoadBalancer| awk '{print $4}')
curl -I "http://$INGIP"

## Delete Ingress controller
./setup erasectl

## Delete Ingress
./setup eraseingress