Skip to content

Commit bebbae0

Browse files
QuentinBissonMatiasmct
authored andcommitted
[kube-prometheus-stack] Fix netpol to allow access to the api-server (prometheus-community#2790)
Signed-off-by: QuentinBisson <[email protected]> Signed-off-by: QuentinBisson <[email protected]>
1 parent 84d4653 commit bebbae0

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

charts/kube-prometheus-stack/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ name: kube-prometheus-stack
2222
sources:
2323
- https://github.com/prometheus-community/helm-charts
2424
- https://github.com/prometheus-operator/kube-prometheus
25-
version: 42.2.0
25+
version: 42.2.1
2626
appVersion: 0.60.1
2727
kubeVersion: ">=1.16.0-0"
2828
home: https://github.com/prometheus-operator/kube-prometheus

charts/kube-prometheus-stack/templates/prometheus-operator/networkpolicy.yaml

+9-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,20 @@ metadata:
77
labels:
88
app: {{ template "kube-prometheus-stack.name" . }}-operator
99
spec:
10-
podSelector:
11-
matchLabels:
12-
app: {{ template "kube-prometheus-stack.name" . }}-operator
13-
release: {{ $.Release.Name | quote }}
10+
egress:
11+
- {}
1412
ingress:
1513
- ports:
1614
{{- if .Values.prometheusOperator.tls.enabled }}
1715
- port: {{ .Values.prometheusOperator.tls.internalPort }}
1816
{{- else }}
1917
- port: 8080
2018
{{- end }}
19+
policyTypes:
20+
- Egress
21+
- Ingress
22+
podSelector:
23+
matchLabels:
24+
app: {{ template "kube-prometheus-stack.name" . }}-operator
25+
release: {{ $.Release.Name | quote }}
2126
{{- end }}

0 commit comments

Comments
 (0)