-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mirror backend URL #4903
Mirror backend URL #4903
Conversation
Refactor health checks and wait until NGINX process ends
backward compatibility for k8s version < 1.14
Signed-off-by: Ricardo Pchevuzinske Katz <[email protected]> Add support to CRL Signed-off-by: Ricardo Pchevuzinske Katz <[email protected]>
Cleanup of docker images
Update nginx image to 0.92
Update openresty and third party modules
Show current reloads count, not total
Improve the time to run e2e tests
Improve the time to run e2e tests
It seems that when support was added for parsing resolv_conf directly a regression was introduced which effectively breaks anyone with ipv6 resolvers. Regression of #3895
Correctly format ipv6 resolver config for lua
Fix panic on multiple ingress mess up upstream is primary or not
* Remove nginx unix sockets * Use an emptyDir volume for /tmp in PSP e2e tests
regression test for the issue fixed in #4543
Remove the_real_ip variable
Because is not possible to specify a different destination for each path. |
no problem In my use case, and i believe this would be a common one, we will mirror all paths of a certain ingress, to an equivalent ingress of a test cluster. |
I just changed by
One question remains: suppose you have prod cluster (prod.env.com) and test cluster (test.env.com) each have ingresses
as well as, somewhere in the server config for
Then we decide we want to add a mirror for please let me know what you think.
OK I will work on this soon. |
furthermore regarding using What if we want to mirror 2 ingresses, send 1 to |
PS this is the best doc, apart from nginx docs, regarding mirroring: https://alex.dzyoba.com/blog/nginx-mirror/ but it does not talk about having multiple mirrors so I'm not too sure. |
@naseemkullah friendly ping |
@naseemkullah just to be clear about the PR This PR should remove |
merged master... @aledbf anything else pending to get this in? |
In other words, the mirror-uri should always be randomly generated is that it? |
squash the commits |
randomly, but should always generate the same url for the same ingress. Please check
|
Also, add a lint rule here ingress-nginx/cmd/plugin/lints/ingress.go Line 68 in 771fc9f
|
Can this be done when you merge? (e.g. squash commit and merge) Im confused by the git log now. there are many commits that came from merging master since my initial commits. |
No. You can download your PR patch https://patch-diff.githubusercontent.com/raw/kubernetes/ingress-nginx/pull/4903.patch to a file, and recreate your |
Signed-off-by: Naseem <[email protected]>
@naseemkullah: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@naseemkullah: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This PR intends to add
nginx.ingress.kubernetes.io/mirror-backend-host
nginx.ingress.kubernetes.io/mirror-backend-url
annotation which would be useful in conjunction withnginx.ingress.kubernetes.io/mirror-uri
.The annotation, if used, would create a location in nginx.conf.
So far no code has been written per se but I would like feedback as to if this makes sense, while I work on the code.What this PR does / why we need it:
The mirror feature seems incomplete. When we add a mirror uri, we will surely want to configure a mirror backend, by adding a mirror backend annotation, we could have that create the required location for the mirrored traffic.
Types of changes
Which issue/s this PR fixes
fixes #4901
How Has This Been Tested?
Not yet and will surely need some advice on local testing.
For CI testing I will mimic other tests.
Checklist: