File tree 2 files changed +40
-12
lines changed
jsonnet/kube-prometheus/components
2 files changed +40
-12
lines changed Original file line number Diff line number Diff line change @@ -113,19 +113,38 @@ function(params) {
113
113
},
114
114
policyTypes: ['Egress' , 'Ingress' ],
115
115
egress: [{}],
116
- ingress: [{
117
- from: [{
118
- podSelector: {
119
- matchLabels: {
120
- 'app.kubernetes.io/name' : 'prometheus' ,
116
+ ingress: [
117
+ {
118
+ from: [{
119
+ podSelector: {
120
+ matchLabels: {
121
+ 'app.kubernetes.io/name' : 'prometheus' ,
122
+ },
121
123
},
122
- },
123
- }],
124
- ports: std.map (function (o) {
125
- port: o.port,
126
- protocol: 'TCP' ,
127
- }, am.service.spec.ports),
128
- }],
124
+ }],
125
+ ports: std.map (function (o) {
126
+ port: o.port,
127
+ protocol: 'TCP' ,
128
+ }, am.service.spec.ports),
129
+ },
130
+ // Alertmanager cluster peer-to-peer communication
131
+ {
132
+ from: [{
133
+ podSelector: {
134
+ matchLabels: {
135
+ 'app.kubernetes.io/name' : 'alertmanager' ,
136
+ },
137
+ },
138
+ }],
139
+ ports: [{
140
+ port: 9094 ,
141
+ protocol: 'TCP' ,
142
+ }, {
143
+ port: 9094 ,
144
+ protocol: 'UDP' ,
145
+ }],
146
+ },
147
+ ],
129
148
},
130
149
},
131
150
Original file line number Diff line number Diff line change 22
22
protocol : TCP
23
23
- port : 8080
24
24
protocol : TCP
25
+ - from :
26
+ - podSelector :
27
+ matchLabels :
28
+ app.kubernetes.io/name : alertmanager
29
+ ports :
30
+ - port : 9094
31
+ protocol : TCP
32
+ - port : 9094
33
+ protocol : UDP
25
34
podSelector :
26
35
matchLabels :
27
36
app.kubernetes.io/component : alert-router
You can’t perform that action at this time.
0 commit comments