We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af86230 commit 4794d61Copy full SHA for 4794d61
1 file changed
kubenetes/network_policy/net_pol1.yaml
@@ -0,0 +1,23 @@
1
+apiVersion: networking.k8s.io/v1
2
+kind: NetworkPolicy
3
+metadata:
4
+ name: allow-172-17
5
+ namespace: namespaceB
6
+spec:
7
+ podSelector:
8
+ matchLabels:
9
+ app: frontend
10
+ policyTypes:
11
+ - Ingress
12
+ ingress:
13
+ - from:
14
+ - ipBlock:
15
+ cidr: 172.17.0.0/16
16
+ except:
17
+ - 172.17.1.0/24
18
+ - namespaceSelector:
19
20
+ myspace: namespaceA
21
+ - podSelector:
22
23
0 commit comments