Ingress Behind Another Load Balancer
Configure Nginx Ingress for Artifactory Helm deployments behind an external load balancer with TLS offloading.
If a load balancer in front of the Nginx Ingress Controller offloads TLS or sets X-Forwarded-* headers, enable use-forwarded-headers=true. Without it, Nginx overwrites those headers with the values it receives from the external load balancer.
Run the following commands to enable the option.
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
kubectl create namespace ingress-nginx
helm upgrade --install ingress-nginx --namespace ingress-nginx ingress-nginx/ingress-nginx --set-string controller.config.use-forwarded-headers=trueAlternatively, create a values.yaml file with the following content and install nginx-ingress with it.
controller:
config:
use-forwarded-headers: "true"Run the following commands after creating values.yaml.
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
kubectl create namespace ingress-nginx
helm upgrade --install ingress-nginx --namespace ingress-nginx ingress-nginx/ingress-nginx -f values.yamlUpdated 9 days ago
