Greetings,
Is there a reason for not having an annotation for http-snippets via nginx.org/http-snippets?
EDIT:
Specifically, I'm referring to https://github.com/nginxinc/kubernetes-ingress/tree/master/examples/customization
There is such annotation as far as I can see https://www.dropbox.com/s/w1m5fqicr1lmjlo/Screenshot%202018-04-02%2020.53.48.png?dl=0
@jaytaylor yes, most of the time to customize an Ingress you would want to change the location or server context. What is your use case?
the http is a global context that includes all the upstreams and servers of all the Ingress resources. In general, changing this context will affect all the Ingress resources. That is why there is no annotation, only a configmap key.
The use-case is to fix incorrect outbound location headers generated due to a misbehaving upstream LB out of my control.
I'll open an issue the official k8s nginx ingress instead, as that is what comes with kubernetes by default, and the default configuration between nginxinc's version and the k8s version is very different.
This can be accomplished through custom templates.
Most helpful comment
@jaytaylor yes, most of the time to customize an Ingress you would want to change the
locationorservercontext. What is your use case?the
httpis a global context that includes all theupstreamsandserversof all the Ingress resources. In general, changing this context will affect all the Ingress resources. That is why there is no annotation, only a configmap key.