Skip to content
Snippets Groups Projects
Unverified Commit c3dad8c7 authored by Siyuan Wang's avatar Siyuan Wang Committed by GitHub
Browse files

fix: prometheus network policy let prometheus-adapter pass (#1982)

parent f15d65e0
No related branches found
No related tags found
No related merge requests found
...@@ -116,6 +116,18 @@ function(params) { ...@@ -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': 'prometheus-adapter',
},
},
}],
ports: [{
port: 9090,
protocol: 'TCP',
}],
}, { }, {
from: [{ from: [{
podSelector: { podSelector: {
......
...@@ -22,6 +22,13 @@ spec: ...@@ -22,6 +22,13 @@ spec:
protocol: TCP protocol: TCP
- port: 8080 - port: 8080
protocol: TCP protocol: TCP
- from:
- podSelector:
matchLabels:
app.kubernetes.io/name: prometheus-adapter
ports:
- port: 9090
protocol: TCP
- from: - from:
- podSelector: - podSelector:
matchLabels: matchLabels:
......
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