-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
update network-policy by adding egress and ipBlock usage #5473
Conversation
Deploy preview ready! Built with commit 503f9ef https://deploy-preview-5473--kubernetes-io-master-staging.netlify.com |
/cc @cmluciano , I thought it might necessary to add some instructions of egress and ipBlock to network-policy docs, so I did it. Would you please to a quick look to see whether I wrote something wrong. Thanks! |
LGTM from a docs standpoint; waiting for review from @cmluciano to merge. 👍 |
@cmluciano 👋 Bumping for review. |
@@ -62,6 +77,13 @@ __podSelector__: Each `NetworkPolicy` includes a `podSelector` which selects the | |||
|
|||
__ingress__: Each `NetworkPolicy` includes a list of whitelist `ingress` rules. Each rule allows traffic which matches both the `from` and `ports` sections. The example policy contains a single rule, which matches traffic on a single port, from either of two sources, the first specified via a `namespaceSelector` and the second specified via a `podSelector`. | |||
|
|||
__egress__: Each `NetworkPolicy` includes a list of whitelist `egress` rules. Each rule allows traffic which matches both the `ports` and `to` sections. The example policy contains a single rule, which matches traffic on a single port, to either of two sources, the first specified via a `namespaceSelector` and the second specified via a `podSelector`. | |||
|
|||
__ipBlock__: `ipBlock` describes a particular CIDR that is allowed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bit asymmetrical - we don't document the podSelector
and namespaceSelector
bits here, which are equivalent.
Not sure if we care though?
@cmluciano okay, that might be better, already changed, thanks |
update network-policy by adding egress and ipBlock usage
This change is