Difference between revisions of "Aks ingress"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "``` NAMESPACE=ingress-basic helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx helm repo update helm upgrade --install ingress-nginx ingress-nginx/ingres...")
 
 
Line 11: Line 11:
 
   --set controller.service.externalTrafficPolicy=Local \
 
   --set controller.service.externalTrafficPolicy=Local \
 
   -f internal-ingress.yaml
 
   -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
 
```
 
```
 +
- https://learn.microsoft.com/en-us/azure/aks/concepts-network#client-source-ip-preservation
 +
  
# --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
 
  
  
 
- https://learn.microsoft.com/en-us/azure/aks/ingress-basic?tabs=azure-cli
 
- https://learn.microsoft.com/en-us/azure/aks/ingress-basic?tabs=azure-cli

Latest revision as of 16:53, 23 October 2022

NAMESPACE=ingress-basic

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update

helm upgrade --install ingress-nginx 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