{"action":"created","comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments/139594443","pull_request_review_id":63546835,"id":139594443,"diff_hunk":"@@ -98,6 +123,42 @@ spec:\n   - {}\n ```\n \n+### Default deny all egress traffic.\n+\n+You can create a \"default\" egress isolation policy for a Namespace by creating a NetworkPolicy that selects all pods but does not allow any egress traffic:\n+\n+```yaml\n+apiVersion: networking.k8s.io/v1\n+kind: NetworkPolicy\n+metadata:\n+  name: default-deny\n+spec:\n+  podSelector:\n+  policyTypes:\n+  - Egress\n+```\n+\n+This ensures that even pods that aren't selected by any other NetworkPolicy will not be allowed egress traffic. This policy does not\n+change the default ingress isolation behavior.\n+\n+### Default deny all ingress and all egress traffic\n+\n+You can create a \"default\" policy for a Namespace which prevents all ingress AND egress traffic by creating the following NetworkPolicy:","path":"docs/concepts/services-networking/network-policies.md","position":100,"original_position":100,"commit_id":"bab39baf0ae5e9128e9b035013175689b60b3c05","original_commit_id":"bab39baf0ae5e9128e9b035013175689b60b3c05","user":{"login":"zacharysarah","id":3210446,"avatar_url":"https://avatars1.githubusercontent.com/u/3210446?v=4","gravatar_id":"","url":"https://api.github.com/users/zacharysarah","html_url":"https://github.com/zacharysarah","followers_url":"https://api.github.com/users/zacharysarah/followers","following_url":"https://api.github.com/users/zacharysarah/following{/other_user}","gists_url":"https://api.github.com/users/zacharysarah/gists{/gist_id}","starred_url":"https://api.github.com/users/zacharysarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacharysarah/subscriptions","organizations_url":"https://api.github.com/users/zacharysarah/orgs","repos_url":"https://api.github.com/users/zacharysarah/repos","events_url":"https://api.github.com/users/zacharysarah/events{/privacy}","received_events_url":"https://api.github.com/users/zacharysarah/received_events","type":"User","site_admin":false},"body":"`...for a namespace...`","created_at":"2017-09-19T04:18:44Z","updated_at":"2017-09-19T04:20:20Z","html_url":"https://github.com/kubernetes/kubernetes.github.io/pull/5529#discussion_r139594443","pull_request_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments/139594443"},"html":{"href":"https://github.com/kubernetes/kubernetes.github.io/pull/5529#discussion_r139594443"},"pull_request":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529"}}},"pull_request":{"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529","id":141737148,"html_url":"https://github.com/kubernetes/kubernetes.github.io/pull/5529","diff_url":"https://github.com/kubernetes/kubernetes.github.io/pull/5529.diff","patch_url":"https://github.com/kubernetes/kubernetes.github.io/pull/5529.patch","issue_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/5529","number":5529,"state":"open","locked":false,"title":"Update NetworkPolicy concept guide with egress and CIDR changes","user":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars3.githubusercontent.com/u/1944093?v=4","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"body":"Documentation updates for two new NetworkPolicy features in Kubernetes 1.8.\r\n\r\n- CIDRs: https://github.com/kubernetes/features/issues/367 \r\n- Egress: https://github.com/kubernetes/features/issues/366\r\n\r\nBoth of these features are marked as \"beta\" - advice on how to indicate that in the documentation would be much appreciated.\r\n\r\nCC @cmluciano\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.kubernetes.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.kubernetes.io/reviews/kubernetes/kubernetes.github.io/5529)\n<!-- Reviewable:end -->\n","created_at":"2017-09-19T01:07:37Z","updated_at":"2017-09-19T04:20:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06f8f04fe1d9e8fe5f97f2b8abec87469019c495","assignee":{"login":"zacharysarah","id":3210446,"avatar_url":"https://avatars1.githubusercontent.com/u/3210446?v=4","gravatar_id":"","url":"https://api.github.com/users/zacharysarah","html_url":"https://github.com/zacharysarah","followers_url":"https://api.github.com/users/zacharysarah/followers","following_url":"https://api.github.com/users/zacharysarah/following{/other_user}","gists_url":"https://api.github.com/users/zacharysarah/gists{/gist_id}","starred_url":"https://api.github.com/users/zacharysarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacharysarah/subscriptions","organizations_url":"https://api.github.com/users/zacharysarah/orgs","repos_url":"https://api.github.com/users/zacharysarah/repos","events_url":"https://api.github.com/users/zacharysarah/events{/privacy}","received_events_url":"https://api.github.com/users/zacharysarah/received_events","type":"User","site_admin":false},"assignees":[{"login":"zacharysarah","id":3210446,"avatar_url":"https://avatars1.githubusercontent.com/u/3210446?v=4","gravatar_id":"","url":"https://api.github.com/users/zacharysarah","html_url":"https://github.com/zacharysarah","followers_url":"https://api.github.com/users/zacharysarah/followers","following_url":"https://api.github.com/users/zacharysarah/following{/other_user}","gists_url":"https://api.github.com/users/zacharysarah/gists{/gist_id}","starred_url":"https://api.github.com/users/zacharysarah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zacharysarah/subscriptions","organizations_url":"https://api.github.com/users/zacharysarah/orgs","repos_url":"https://api.github.com/users/zacharysarah/repos","events_url":"https://api.github.com/users/zacharysarah/events{/privacy}","received_events_url":"https://api.github.com/users/zacharysarah/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529/commits","review_comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529/comments","review_comment_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/5529/comments","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/statuses/bab39baf0ae5e9128e9b035013175689b60b3c05","head":{"label":"caseydavenport:network-policy-1.8","ref":"network-policy-1.8","sha":"bab39baf0ae5e9128e9b035013175689b60b3c05","user":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars3.githubusercontent.com/u/1944093?v=4","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"repo":{"id":53686507,"name":"kubernetes.github.io","full_name":"caseydavenport/kubernetes.github.io","owner":{"login":"caseydavenport","id":1944093,"avatar_url":"https://avatars3.githubusercontent.com/u/1944093?v=4","gravatar_id":"","url":"https://api.github.com/users/caseydavenport","html_url":"https://github.com/caseydavenport","followers_url":"https://api.github.com/users/caseydavenport/followers","following_url":"https://api.github.com/users/caseydavenport/following{/other_user}","gists_url":"https://api.github.com/users/caseydavenport/gists{/gist_id}","starred_url":"https://api.github.com/users/caseydavenport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caseydavenport/subscriptions","organizations_url":"https://api.github.com/users/caseydavenport/orgs","repos_url":"https://api.github.com/users/caseydavenport/repos","events_url":"https://api.github.com/users/caseydavenport/events{/privacy}","received_events_url":"https://api.github.com/users/caseydavenport/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caseydavenport/kubernetes.github.io","description":"Website/documentation repo","fork":true,"url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io","forks_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/forks","keys_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/teams","hooks_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/hooks","issue_events_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/events","assignees_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/tags","blobs_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/languages","stargazers_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/stargazers","contributors_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/contributors","subscribers_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/subscribers","subscription_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/subscription","commits_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/merges","archive_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/downloads","issues_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/labels{/name}","releases_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/caseydavenport/kubernetes.github.io/deployments","created_at":"2016-03-11T18:00:58Z","updated_at":"2016-10-28T16:40:49Z","pushed_at":"2017-09-19T01:12:19Z","git_url":"git://github.com/caseydavenport/kubernetes.github.io.git","ssh_url":"git@github.com:caseydavenport/kubernetes.github.io.git","clone_url":"https://github.com/caseydavenport/kubernetes.github.io.git","svn_url":"https://github.com/caseydavenport/kubernetes.github.io","homepage":null,"size":58091,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kubernetes:release-1.8","ref":"release-1.8","sha":"9f590be6ceadc934b738e5e024d8c409ab42c266","user":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"repo":{"id":51478266,"name":"kubernetes.github.io","full_name":"kubernetes/kubernetes.github.io","owner":{"login":"kubernetes","id":13629408,"avatar_url":"https://avatars2.githubusercontent.com/u/13629408?v=4","gravatar_id":"","url":"https://api.github.com/users/kubernetes","html_url":"https://github.com/kubernetes","followers_url":"https://api.github.com/users/kubernetes/followers","following_url":"https://api.github.com/users/kubernetes/following{/other_user}","gists_url":"https://api.github.com/users/kubernetes/gists{/gist_id}","starred_url":"https://api.github.com/users/kubernetes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kubernetes/subscriptions","organizations_url":"https://api.github.com/users/kubernetes/orgs","repos_url":"https://api.github.com/users/kubernetes/repos","events_url":"https://api.github.com/users/kubernetes/events{/privacy}","received_events_url":"https://api.github.com/users/kubernetes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kubernetes/kubernetes.github.io","description":"Kubernetes website and documentation repo: ","fork":false,"url":"https://api.github.com/repos/kubernetes/kubernetes.github.io","forks_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/forks","keys_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/teams","hooks_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/hooks","issue_events_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/events{/number}","events_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/events","assignees_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/assignees{/user}","branches_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/branches{/branch}","tags_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/tags","blobs_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/statuses/{sha}","languages_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/languages","stargazers_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/stargazers","contributors_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/contributors","subscribers_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/subscribers","subscription_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/subscription","commits_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/contents/{+path}","compare_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/merges","archive_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/downloads","issues_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues{/number}","pulls_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls{/number}","milestones_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/milestones{/number}","notifications_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/labels{/name}","releases_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/releases{/id}","deployments_url":"https://api.github.com/repos/kubernetes/kubernetes.github.io/deployments","created_at":"2016-02-10T22:46:48Z","updated_at":"2017-09-16T15:13:09Z","pushed_at":"2017-09-19T04:08:15Z","git_url":"git://github.com/kubernetes/kubernetes.github.io.git","ssh_url":"git@github.com:kubernetes/kubernetes.github.io.git","clone_url":"https://github.com/kubernetes/kubernetes.github.io.git","svn_url":"https://github.com/kubernetes/kubernetes.github.io","homepage":"https://kubernetes.github.io","size":77740,"stargazers_count":238,"watchers_count":238,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1671,"mirror_url":null,"open_issues_count":586,"forks":1671,"open_issues":586,"watchers":238,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529"},"html":{"href":"https://github.com/kubernetes/kubernetes.github.io/pull/5529"},"issue":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/5529"},"comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/issues/5529/comments"},"review_comments":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529/comments"},"review_comment":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/pulls/5529/commits"},"statuses":{"href":"https://api.github.com/repos/kubernetes/kubernetes.github.io/statuses/bab39baf0ae5e9128e9b035013175689b60b3c05"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"zacharysarah"}}