mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-19 21:41:06 +02:00
fix: prometheus network policy let prometheus-adapter pass (#1982)
This commit is contained in:
parent
f15d65e0b2
commit
c3dad8c70b
@ -116,6 +116,18 @@ function(params) {
|
||||
port: o.port,
|
||||
protocol: 'TCP',
|
||||
}, p.service.spec.ports),
|
||||
}, {
|
||||
from: [{
|
||||
podSelector: {
|
||||
matchLabels: {
|
||||
'app.kubernetes.io/name': 'prometheus-adapter',
|
||||
},
|
||||
},
|
||||
}],
|
||||
ports: [{
|
||||
port: 9090,
|
||||
protocol: 'TCP',
|
||||
}],
|
||||
}, {
|
||||
from: [{
|
||||
podSelector: {
|
||||
|
@ -22,6 +22,13 @@ spec:
|
||||
protocol: TCP
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: prometheus-adapter
|
||||
ports:
|
||||
- port: 9090
|
||||
protocol: TCP
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
|
Loading…
x
Reference in New Issue
Block a user