File tree Expand file tree Collapse file tree 2 files changed +28
-26
lines changed Expand file tree Collapse file tree 2 files changed +28
-26
lines changed Original file line number Diff line number Diff line change @@ -19,17 +19,10 @@ spec:
19
19
matchLabels :
20
20
app : olm-operator
21
21
ingress :
22
- - ports :
23
- - protocol : TCP
24
- port : 8080
22
+ - {{ .Values.networkPolicy.metrics | toYaml | nindent 6 | trimSuffix "\n" }}
25
23
egress :
26
- - ports :
27
- - protocol : TCP
28
- port : 6443 # kube-api service
29
- - protocol : TCP
30
- port : 53 # DNS
31
- - protocol : UDP
32
- port : 53 # DNS
24
+ - {{ .Values.networkPolicy.kubeAPIServer | toYaml | nindent 6 | trimSuffix "\n" }}
25
+ - {{ .Values.networkPolicy.dns | toYaml | nindent 6 | trimSuffix "\n" }}
33
26
policyTypes :
34
27
- Ingress
35
28
- Egress
@@ -44,19 +37,13 @@ spec:
44
37
matchLabels :
45
38
app : catalog-operator
46
39
ingress :
47
- - ports :
48
- - protocol : TCP
49
- port : metrics
40
+ - {{ .Values.networkPolicy.metrics | toYaml | nindent 6 | trimSuffix "\n" }}
50
41
egress :
51
- - ports :
52
- - protocol : TCP
53
- port : 6443 # kube-api server
42
+ - {{ .Values.networkPolicy.kubeAPIServer | toYaml | nindent 6 | trimSuffix "\n" }}
43
+ - {{ .Values.networkPolicy.dns | toYaml | nindent 6 | trimSuffix "\n" }}
44
+ - ports : # This is another distinct rule in the egress list
54
45
- protocol : TCP
55
- port : 50051 # registry pods' service port
56
- - protocol : TCP
57
- port : 53 # DNS
58
- - protocol : UDP
59
- port : 53 # DNS
46
+ port : {{ .Values.catalogGrpcServicePort }}
60
47
policyTypes :
61
48
- Ingress
62
49
- Egress
@@ -75,13 +62,10 @@ spec:
75
62
- protocol : TCP
76
63
port : {{ .Values.package.service.internalPort }}
77
64
egress :
65
+ - {{ .Values.networkPolicy.dns | toYaml | nindent 6 | trimSuffix "\n" }}
78
66
- ports :
79
67
- protocol : TCP
80
- port : 50051 # registry pods' service port
81
- - protocol : UDP
82
- port : 53 # DNS
83
- - protocol : TCP
84
- port : 53 # DNS
68
+ port : {{ .Values.catalogGrpcServicePort }}
85
69
policyTypes :
86
70
- Ingress
87
71
- Egress
Original file line number Diff line number Diff line change @@ -19,6 +19,8 @@ writeStatusName: '""'
19
19
imagestream : false
20
20
debug : false
21
21
installType : upstream
22
+ catalogGrpcServicePort : 50051
23
+
22
24
olm :
23
25
replicaCount : 1
24
26
image :
@@ -75,3 +77,19 @@ package:
75
77
monitoring :
76
78
enabled : false
77
79
namespace : monitoring
80
+
81
+ networkPolicy :
82
+ dns :
83
+ ports :
84
+ - protocol : TCP
85
+ port : 53
86
+ - protocol : UDP
87
+ port : 53
88
+ kubeAPIServer :
89
+ ports :
90
+ - protocol : TCP
91
+ port : 6443
92
+ metrics :
93
+ ports :
94
+ - protocol : TCP
95
+ port : metrics
You can’t perform that action at this time.
0 commit comments