From 0162794d63643748dd49ee7817faaf4187adc08c Mon Sep 17 00:00:00 2001 From: Herve Nicol <12008875+hervenicol@users.noreply.github.com> Date: Tue, 12 Sep 2023 09:58:57 +0200 Subject: [PATCH] fix prometheus-operator cilium netpol when using TLS --- charts/kube-prometheus-stack/Chart.yaml | 2 +- .../templates/prometheus-operator/ciliumnetworkpolicy.yaml | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/charts/kube-prometheus-stack/Chart.yaml b/charts/kube-prometheus-stack/Chart.yaml index e8a159d825d6..d0810a6aa6e1 100644 --- a/charts/kube-prometheus-stack/Chart.yaml +++ b/charts/kube-prometheus-stack/Chart.yaml @@ -21,7 +21,7 @@ name: kube-prometheus-stack sources: - https://github.com/prometheus-community/helm-charts - https://github.com/prometheus-operator/kube-prometheus -version: 51.0.0 +version: 51.0.1 appVersion: v0.68.0 kubeVersion: ">=1.19.0-0" home: https://github.com/prometheus-operator/kube-prometheus diff --git a/charts/kube-prometheus-stack/templates/prometheus-operator/ciliumnetworkpolicy.yaml b/charts/kube-prometheus-stack/templates/prometheus-operator/ciliumnetworkpolicy.yaml index af0fa57f5487..b75dcfd9449c 100644 --- a/charts/kube-prometheus-stack/templates/prometheus-operator/ciliumnetworkpolicy.yaml +++ b/charts/kube-prometheus-stack/templates/prometheus-operator/ciliumnetworkpolicy.yaml @@ -32,8 +32,10 @@ spec: - port: "8080" {{- end }} protocol: "TCP" + {{- if not .Values.prometheusOperator.tls.enabled }} rules: http: - method: "GET" path: "/metrics" + {{- end }} {{- end }}