Skip to content

How to define a pod to not have any inbound ports without an error in the log? #7765

Answered by mateiidavid
karlparry asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@karlparry
Comment options

@olix0r
Comment options

Answer selected by karlparry
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants