File tree 3 files changed +101
-20
lines changed
3 files changed +101
-20
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,29 @@ spec:
29
29
matchLabels :
30
30
app : olm-operator
31
31
ingress :
32
- - ports :
33
- - port : metrics
32
+ - from :
33
+ - namespaceSelector :
34
+ matchLabels :
35
+ name : openshift-monitoring
36
+ ports :
37
+ - port : 8443
34
38
protocol : TCP
35
39
egress :
36
40
- ports :
37
41
- port : 6443
38
42
protocol : TCP
39
43
- ports :
40
- - port : 53
44
+ - port : dns-tcp
41
45
protocol : TCP
42
- - port : 53
46
+ - port : dns
43
47
protocol : UDP
48
+ to :
49
+ - namespaceSelector :
50
+ matchLabels :
51
+ kubernetes.io/metadata.name : openshift-dns
52
+ - podSelector :
53
+ matchLabels :
54
+ dns.operator.openshift.io/daemonset-dns : default
44
55
policyTypes :
45
56
- Ingress
46
57
- Egress
@@ -60,18 +71,29 @@ spec:
60
71
matchLabels :
61
72
app : catalog-operator
62
73
ingress :
63
- - ports :
64
- - port : metrics
74
+ - from :
75
+ - namespaceSelector :
76
+ matchLabels :
77
+ name : openshift-monitoring
78
+ ports :
79
+ - port : 8443
65
80
protocol : TCP
66
81
egress :
67
82
- ports :
68
83
- port : 6443
69
84
protocol : TCP
70
85
- ports :
71
- - port : 53
86
+ - port : dns-tcp
72
87
protocol : TCP
73
- - port : 53
88
+ - port : dns
74
89
protocol : UDP
90
+ to :
91
+ - namespaceSelector :
92
+ matchLabels :
93
+ kubernetes.io/metadata.name : openshift-dns
94
+ - podSelector :
95
+ matchLabels :
96
+ dns.operator.openshift.io/daemonset-dns : default
75
97
- ports : # This is another distinct rule in the egress list
76
98
- protocol : TCP
77
99
port : 50051
@@ -99,10 +121,17 @@ spec:
99
121
port : 5443
100
122
egress :
101
123
- ports :
102
- - port : 53
124
+ - port : dns-tcp
103
125
protocol : TCP
104
- - port : 53
126
+ - port : dns
105
127
protocol : UDP
128
+ to :
129
+ - namespaceSelector :
130
+ matchLabels :
131
+ kubernetes.io/metadata.name : openshift-dns
132
+ - podSelector :
133
+ matchLabels :
134
+ dns.operator.openshift.io/daemonset-dns : default
106
135
- ports :
107
136
- protocol : TCP
108
137
port : 50051
Original file line number Diff line number Diff line change @@ -29,18 +29,29 @@ spec:
29
29
matchLabels :
30
30
app : olm-operator
31
31
ingress :
32
- - ports :
33
- - port : metrics
32
+ - from :
33
+ - namespaceSelector :
34
+ matchLabels :
35
+ name : openshift-monitoring
36
+ ports :
37
+ - port : 8443
34
38
protocol : TCP
35
39
egress :
36
40
- ports :
37
41
- port : 6443
38
42
protocol : TCP
39
43
- ports :
40
- - port : 53
44
+ - port : dns-tcp
41
45
protocol : TCP
42
- - port : 53
46
+ - port : dns
43
47
protocol : UDP
48
+ to :
49
+ - namespaceSelector :
50
+ matchLabels :
51
+ kubernetes.io/metadata.name : openshift-dns
52
+ - podSelector :
53
+ matchLabels :
54
+ dns.operator.openshift.io/daemonset-dns : default
44
55
policyTypes :
45
56
- Ingress
46
57
- Egress
@@ -60,18 +71,29 @@ spec:
60
71
matchLabels :
61
72
app : catalog-operator
62
73
ingress :
63
- - ports :
64
- - port : metrics
74
+ - from :
75
+ - namespaceSelector :
76
+ matchLabels :
77
+ name : openshift-monitoring
78
+ ports :
79
+ - port : 8443
65
80
protocol : TCP
66
81
egress :
67
82
- ports :
68
83
- port : 6443
69
84
protocol : TCP
70
85
- ports :
71
- - port : 53
86
+ - port : dns-tcp
72
87
protocol : TCP
73
- - port : 53
88
+ - port : dns
74
89
protocol : UDP
90
+ to :
91
+ - namespaceSelector :
92
+ matchLabels :
93
+ kubernetes.io/metadata.name : openshift-dns
94
+ - podSelector :
95
+ matchLabels :
96
+ dns.operator.openshift.io/daemonset-dns : default
75
97
- ports : # This is another distinct rule in the egress list
76
98
- protocol : TCP
77
99
port : 50051
@@ -99,10 +121,17 @@ spec:
99
121
port : 5443
100
122
egress :
101
123
- ports :
102
- - port : 53
124
+ - port : dns-tcp
103
125
protocol : TCP
104
- - port : 53
126
+ - port : dns
105
127
protocol : UDP
128
+ to :
129
+ - namespaceSelector :
130
+ matchLabels :
131
+ kubernetes.io/metadata.name : openshift-dns
132
+ - podSelector :
133
+ matchLabels :
134
+ dns.operator.openshift.io/daemonset-dns : default
106
135
- ports :
107
136
- protocol : TCP
108
137
port : 50051
Original file line number Diff line number Diff line change @@ -104,3 +104,26 @@ package:
104
104
monitoring :
105
105
enabled : true
106
106
namespace : openshift-monitoring
107
+
108
+ networkPolicy :
109
+ dns :
110
+ ports :
111
+ - protocol : TCP
112
+ port : dns-tcp
113
+ - protocol : UDP
114
+ port : dns
115
+ to :
116
+ - namespaceSelector :
117
+ matchLabels :
118
+ kubernetes.io/metadata.name : openshift-dns
119
+ - podSelector :
120
+ matchLabels :
121
+ dns.operator.openshift.io/daemonset-dns : default
122
+ metrics :
123
+ ports :
124
+ - port : 8443
125
+ protocol : TCP
126
+ from :
127
+ - namespaceSelector :
128
+ matchLabels :
129
+ name : openshift-monitoring
You can’t perform that action at this time.
0 commit comments