From b02b212beca9fc555feb663a8501feefa867a6b4 Mon Sep 17 00:00:00 2001 From: Maciej Kwiek Date: Wed, 28 Mar 2018 19:44:05 +0200 Subject: [PATCH] Add PolicyTypes to allow-all egress policy (#7895) `PolicyTypes` default to `["Egress", "Ingress"]`, it doesn't make sense for egress-only policy to have `Ingress` as PolicyType. --- docs/concepts/services-networking/network-policies.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/concepts/services-networking/network-policies.md b/docs/concepts/services-networking/network-policies.md index 049e268919..fa7ad9c0b2 100644 --- a/docs/concepts/services-networking/network-policies.md +++ b/docs/concepts/services-networking/network-policies.md @@ -162,6 +162,8 @@ spec: podSelector: {} egress: - {} + policyTypes: + - Egress ``` ### Default deny all ingress and all egress traffic @@ -186,4 +188,4 @@ This ensures that even pods that aren't selected by any other NetworkPolicy will - See the [Declare Network Policy](/docs/tasks/administer-cluster/declare-network-policy/) walkthrough for further examples. -- See more [Recipes](https://github.com/ahmetb/kubernetes-network-policy-recipes) for common scenarios enabled by the NetworkPolicy resource. \ No newline at end of file +- See more [Recipes](https://github.com/ahmetb/kubernetes-network-policy-recipes) for common scenarios enabled by the NetworkPolicy resource.