Merge pull request #1721 from ArthurSens/graf-prom-network-fix

This commit is contained in:
Paweł Krupa
2022-04-11 16:02:25 +02:00
committed by GitHub
2 changed files with 19 additions and 0 deletions

View File

@@ -116,6 +116,18 @@ function(params) {
port: o.port, port: o.port,
protocol: 'TCP', protocol: 'TCP',
}, p.service.spec.ports), }, p.service.spec.ports),
}, {
from: [{
podSelector: {
matchLabels: {
'app.kubernetes.io/name': 'grafana',
},
},
}],
ports: [{
port: 9090,
protocol: 'TCP',
}],
}], }],
}, },
}, },

View File

@@ -22,6 +22,13 @@ spec:
protocol: TCP protocol: TCP
- port: 8080 - port: 8080
protocol: TCP protocol: TCP
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: grafana
ports:
- port: 9090
protocol: TCP
podSelector: podSelector:
matchLabels: matchLabels:
app.kubernetes.io/component: prometheus app.kubernetes.io/component: prometheus