Skip to content

nginx.ingress.kubernetes.io/service-upstream: "true" annotation for Nginx Ingress resources #9240

Answered by Sierra1011
cconnert asked this question in Q&A
Discussion options

You must be logged in to vote

So, the annotation changes the behaviour of nginx to address a ClusterIP and Port combination, instead of listing the endpoints available to it. Applying that to all ingress objects could be problematic!
Unfortunately there's not a way to automatically label child objects, so you can't add something to a namespace and have it label all subsequent ingress objects either.

For the last bit of your question, there's nothing that requires the service behind the ingress to be meshed, but (for ingress-nginx at least) you have to add the mesh annotation to the controller. You could run multiple controllers if you desperately want to avoid it, but that is a fair bit of extra effort for not much gain.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@cconnert
Comment options

@Sierra1011
Comment options

@cconnert
Comment options

Answer selected by cconnert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants