How to define a pod to not have any inbound ports without an error in the log? #7765
-
We have a few pods that have no inbound listening ports. When these run we get this error in the Proxy log. Is there anyway to stop these messages appearing in the Proxy logs?
Using Linkerd version 2.11.X |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hey @karlparry, we use the env variable to discover authorization policies (see: implementation ticket). We discussed the usage of Anyway, looking through the code, it seems that when the env variable isn't set, we'll log out a warn message and use a default policy. Further in the code, when we try to resolve the address for the policy controller, we seem to check the ports again and log an error message if they're missing. AFAIK based on this, the error shouldn't have a big impact. Might be some room here to turn it into a warn, or something similar, but I'm not (personally) sure of what the implications would be. Hope this helps? Let me know what you think. |
Beta Was this translation helpful? Give feedback.
-
Im encountering this as well, is it worth to open a feature request/submit a PR to change this to WARN instead of error? |
Beta Was this translation helpful? Give feedback.
Hey @karlparry, we use the env variable to discover authorization policies (see: implementation ticket). We discussed the usage of
containerPorts
in #7640.Anyway, looking through the code, it seems that when the env variable isn't set, we'll log out a warn message and use a default policy. Further in the code, when we try to resolve the address for the policy controller, we seem to check the ports again and log an error message if they're missing. AFAIK based on this, the error shouldn't have a big impact. Might be some room here to turn it into a warn, or something similar, but I'm not (personally) sure of what the implications would be.
Hope this helps? Let me know what you think.