Aks multiple ingress

From UVOO Tech Wiki
Revision as of 17:05, 25 October 2022 by Busk (talk | contribs) (Created page with "https://stackoverflow.com/questions/67176678/cant-create-a-second-ingress-controller-using-helm-with-custom-class-in-azure-k8 internal-ingress.yaml ``` controller: service...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

https://stackoverflow.com/questions/67176678/cant-create-a-second-ingress-controller-using-helm-with-custom-class-in-azure-k8

internal-ingress.yaml

controller:
  service:
    loadBalancerIP: 10.x.x.x
    annotations:
      service.beta.kubernetes.io/azure-load-balancer-internal: "true"
  ingressClassResource:
    name: nginx-test
NAMESPACE=ingress-test
helm upgrade --install ingress-basic ingress-nginx/ingress-nginx \
  --create-namespace \
  --namespace $NAMESPACE \
  --set controller.service.annotations."service\.beta\.kubernetes\.io/azure-load-balancer-health-probe-request-path"=/healthz \
  --set controller.service.externalTrafficPolicy=Local \
  -f internal-ingress.yaml

# --set controller.service.externalTrafficPolicy=Local disables tls passthrough and adds  X-Forwarded-For
# https://learn.microsoft.com/en-us/azure/aks/concepts-network#client-source-ip-preservation