Install nginx ingress controller (deprecated)

helm repo add metallb https://metallb.github.io/metallb
helm install metallb metallb/metallb --values $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/metallb_values.yaml
kubectl apply -f  $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/nginx_metal_deploy.yaml

Edit $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/metallb_ip.yaml and assign ip range, we need two address**

kubectl apply -f $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/metallb_ip.yaml
  • Enable secure(https) routes for nginx ingress controller

    • Execute script $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/certgen

    • Apply the generated kubernetes secret yaml file

    kubectl -n ingress-nginx apply -f $HOME/cert/nginx-ingress-tls-secret.yaml
    

    Edit $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/nginx_metal_deploy.yaml file and add the 2 additional args (spec–>containers–>args) and apply the changes

    - --enable-ssl-passthrough
    - --default-ssl-certificate=ingress-nginx/nginx-ingress-tls
    
    kubectl -n ingress-nginx apply -f $HELMCHART_LOCATION/aizen/charts/infra/charts/ingress-controller/nginx_metal_deploy.yaml