Skip to content
Snippets Groups Projects
Commit 8bdd5260 authored by ArthurSens's avatar ArthurSens
Browse files

jsonnet/components/prometheus: Fix grafana network access

parent 73bbec96
No related branches found
No related tags found
No related merge requests found
......@@ -116,6 +116,18 @@ function(params) {
port: o.port,
protocol: 'TCP',
}, p.service.spec.ports),
}, {
from: [{
podSelector: {
matchLabels: {
'app.kubernetes.io/name': 'grafana',
},
},
}],
ports: [{
port: 9090,
protocol: 'TCP',
}],
}],
},
},
......
......@@ -22,6 +22,13 @@ spec:
protocol: TCP
- port: 8080
protocol: TCP
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: grafana
ports:
- port: 9090
protocol: TCP
podSelector:
matchLabels:
app.kubernetes.io/component: prometheus
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment