You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/administration-guide/pages/configuring-network-policies.adoc
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,12 +38,11 @@ spec:
38
38
policyTypes:
39
39
- Ingress
40
40
----
41
-
====
42
-
+
43
41
<1> The {prod-short} namespace.
44
42
The default is `{prod-namespace}`.
45
43
<2> The empty `podSelector` selects all Pods in the {orch-namespace}.
46
-
44
+
====
45
+
+
47
46
* 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}`.
48
47
The `allow-from-openshift-apiserver` NetworkPolicy allows incoming traffic from `openshift-apiserver` namespace to the `devworkspace-webhook-server` enabling webhooks.
49
48
The `allow-from-workspaces-namespaces` NetworkPolicy allows incoming traffic from each user project to `che-gateway` pod.
@@ -70,11 +69,10 @@ spec:
70
69
policyTypes:
71
70
- Ingress
72
71
----
73
-
====
74
-
+
75
72
<1> The {prod-short} namespace.
76
73
The default is `{prod-namespace}`.
77
74
<2> The `podSelector` only selects devworkspace-webhook-server pods
75
+
====
78
76
+
79
77
.`allow-from-workspaces-namespaces.yaml`
80
78
====
@@ -86,9 +84,7 @@ metadata:
86
84
name: allow-from-workspaces-namespaces
87
85
namespace: {prod-namespace} <1>
88
86
spec:
89
-
podSelector:
90
-
matchLabels:
91
-
app.kubernetes.io/component: che-gateway <2>
87
+
podSelector: {} <2>
92
88
ingress:
93
89
- from:
94
90
- podSelector: {}
@@ -98,11 +94,11 @@ spec:
98
94
policyTypes:
99
95
- Ingress
100
96
----
101
-
====
102
-
+
103
97
<1> The {prod-short} namespace.
104
98
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.
0 commit comments