Uncategorized

TL;DR The problem We want to define multiple ingresses for the same domain name in nginx ingress controller. A user-defined header should be used to decide which ingress to use. The solution The solution is to overwrite the generated upstream based on an incoming header value: apiVersion: networking.k8s.io/v1 kind: Ingress metadata:   annotations:     nginx.ingress.kubernetes.io/configuration-snippet: |       if...