File tree Expand file tree Collapse file tree 1 file changed +42
-12
lines changed Expand file tree Collapse file tree 1 file changed +42
-12
lines changed Original file line number Diff line number Diff line change 9
9
- Ingress
10
10
- Egress
11
11
---
12
- apiVersion : networking.k8s.io/v1
12
+ ---
13
+ apiVersion : networking.k8s.io/v1
13
14
kind : NetworkPolicy
14
15
metadata :
15
16
name : olm-operator
16
17
namespace : {{ .Values.namespace }}
17
18
spec :
18
19
podSelector :
19
- matchLabels :
20
+ matchLabels :
20
21
app : olm-operator
21
22
ingress :
22
23
- ports :
@@ -25,19 +26,25 @@ spec:
25
26
egress :
26
27
- ports :
27
28
- protocol : TCP
28
- port : 6443
29
+ port : 6443 # kube-api service
30
+ - protocol : TCP
31
+ port : 50051 # catalog service
32
+ - protocol : TCP
33
+ port : 53 # DNS
34
+ - protocol : UDP
35
+ port : 53 # DNS
29
36
policyTypes :
30
- - Ingress
37
+ - Ingress
31
38
- Egress
32
39
---
33
- apiVersion : networking.k8s.io/v1
40
+ apiVersion : networking.k8s.io/v1
34
41
kind : NetworkPolicy
35
42
metadata :
36
43
name : catalog-operator
37
44
namespace : {{ .Values.namespace }}
38
45
spec :
39
46
podSelector :
40
- matchLabels :
47
+ matchLabels :
41
48
app : catalog-operator
42
49
ingress :
43
50
- ports :
@@ -46,23 +53,46 @@ spec:
46
53
egress :
47
54
- ports :
48
55
- protocol : TCP
49
- port : 6443
56
+ port : 6443 # kube-api server
57
+ - protocol : TCP
58
+ port : 50051 # catalog service
59
+ - protocol : TCP
60
+ port : 53 # DNS
61
+ - protocol : UDP
62
+ port : 53 # DNS
63
+ - protocol : TCP
64
+ port : {{ .Values.package.service.internalPort }} # package service
50
65
policyTypes :
51
- - Ingress
66
+ - Ingress
52
67
- Egress
53
68
---
54
- apiVersion : networking.k8s.io/v1
69
+ apiVersion : networking.k8s.io/v1
55
70
kind : NetworkPolicy
56
71
metadata :
57
72
name : packageserver
58
73
namespace : {{ .Values.namespace }}
59
74
spec :
60
75
podSelector :
61
- matchLabels :
76
+ matchLabels :
62
77
app : packageserver
63
78
ingress :
64
79
- ports :
65
80
- protocol : TCP
66
- port : {{ .Values.package.service.internalPort }}
81
+ port : {{ .Values.package.service.internalPort }}
67
82
policyTypes :
68
- - Ingress
83
+ - Ingress
84
+ ---
85
+ apiVersion : networking.k8s.io/v1
86
+ kind : NetworkPolicy
87
+ metadata :
88
+ name : default-allow-all
89
+ namespace : {{ .Values.operator_namespace }}
90
+ spec :
91
+ podSelector : {}
92
+ policyTypes :
93
+ - Ingress
94
+ - Egress
95
+ ingress :
96
+ - {}
97
+ egress :
98
+ - {}
You can’t perform that action at this time.
0 commit comments