An elegant way to upgrade/test for localhost vs. 0.0.0.0 so that migrating to 2.11 doesn't freeze all comms #8051
Replies: 2 comments 1 reply
-
For instance, hello world django will fail unless a user remembers to specify 0.0.0.0 : http://www.holeintheceiling.com/blog/2012/06/21/django-and-runserver-0-0-0-0/ (verified in other sources as well) Tbh, this kinda goes against Linkerd's "it just works", doesn't it? |
Beta Was this translation helpful? Give feedback.
-
Hey @juandiegopalomino, we talked a bit about it on Slack :) Checking each individual app might turn out to be a bit cumbersome. I think perhaps the easiest way to catch it would be through liveness/readiness probes. If you want to check this behaviour without linkerd (so an app is unmeshed), you can use both tcp and http probes. If the app is meshed, you can use http probes -- although, you probably want to check the app itself, not that linkerd won't forward. Here is an example nginx configuration that listens on localhost, taken from one of our tests:
In this case, the probe will be successful if the index path (
I believe this might do the trick, it's something I whipped up in a few minutes though so my assumptions might be wrong :)
We understand such a breaking change can be a bit frustrating for users. Prior to our If a container is bound on localhost ( Looking at your Django link, the same thing is specified there:
In other words, if you don't bind on Hope this all clears it up. Again, sorry it's a bit of a tough process to do the upgrade. On the bright side, your container security will improve. |
Beta Was this translation helpful? Give feedback.
-
https://linkerd.slack.com/archives/C89RTCWJF/p1647020660446349
Beta Was this translation helpful? Give feedback.
All reactions