mirror of
https://github.com/prometheus-operator/kube-prometheus.git
synced 2025-08-19 05:21:12 +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,
|
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:
|
|||||||
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user