Skip to content

Commit 82b84e9

Browse files
dkwon17deerskindoll
authored andcommitted
advanced config properties
1 parent e6556f7 commit 82b84e9

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

modules/administration-guide/pages/configuring-network-policies.adoc

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,11 @@ spec:
3838
policyTypes:
3939
- Ingress
4040
----
41-
====
42-
+
4341
<1> The {prod-short} namespace.
4442
The default is `{prod-namespace}`.
4543
<2> The empty `podSelector` selects all Pods in the {orch-namespace}.
46-
44+
====
45+
+
4746
* OPTIONAL: In case you applied link:https://docs.openshift.com/container-platform/{ocp4-ver}/networking/network_policy/multitenant-network-policy.html[Configuring multitenant isolation with network policy], you also must apply `allow-from-openshift-apiserver` and `allow-from-workspaces-namespaces` NetworkPolicies to `{prod-namespace}`.
4847
The `allow-from-openshift-apiserver` NetworkPolicy allows incoming traffic from `openshift-apiserver` namespace to the `devworkspace-webhook-server` enabling webhooks.
4948
The `allow-from-workspaces-namespaces` NetworkPolicy allows incoming traffic from each user project to `che-gateway` pod.
@@ -70,11 +69,10 @@ spec:
7069
policyTypes:
7170
- Ingress
7271
----
73-
====
74-
+
7572
<1> The {prod-short} namespace.
7673
The default is `{prod-namespace}`.
7774
<2> The `podSelector` only selects devworkspace-webhook-server pods
75+
====
7876
+
7977
.`allow-from-workspaces-namespaces.yaml`
8078
====
@@ -86,9 +84,7 @@ metadata:
8684
name: allow-from-workspaces-namespaces
8785
namespace: {prod-namespace} <1>
8886
spec:
89-
podSelector:
90-
matchLabels:
91-
app.kubernetes.io/component: che-gateway <2>
87+
podSelector: {} <2>
9288
ingress:
9389
- from:
9490
- podSelector: {}
@@ -98,11 +94,11 @@ spec:
9894
policyTypes:
9995
- Ingress
10096
----
101-
====
102-
+
10397
<1> The {prod-short} namespace.
10498
The default is `{prod-namespace}`.
105-
<2> The `podSelector` only selects che-gateway pods
99+
<2> The empty `podSelector` selects all pods in the {prod-short} namespace.
100+
====
101+
+
106102

107103
.Additional resources
108104
* xref:configuring-namespace-provisioning.adoc[]

0 commit comments

Comments
 (0)