Skip to content

Commit

Permalink
fix: the prom config when istio enabled
Browse files Browse the repository at this point in the history
Signed-off-by: ericsyh <[email protected]>
  • Loading branch information
ericsyh committed Jul 12, 2024
1 parent b5863c1 commit 184bfb9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
- {{ template "pulsar.namespace" . }}
{{- end }}
{{- if .Values.istio.enabled }}
{{- if .Values .Values.istio.migration }}
scheme: http
enable_http2: false
{{- else }}
scheme: https
# Disable http2 for Prometheus issue: https://github.com/prometheus/prometheus/issues/10213
enable_http2: false
Expand All @@ -61,6 +65,7 @@ data:
cert_file: /etc/prom-certs/cert-chain.pem
key_file: /etc/prom-certs/key.pem
insecure_skip_verify: true
{{- end }}
{{- end }}
relabel_configs:
{{- if .Values.istio.enabled }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ data:
- {{ template "pulsar.namespace" . }}
{{- end }}
{{- if .Values.istio.enabled }}
{{- if .Values .Values.istio.migration }}
scheme: http
enable_http2: false
{{- else }}
scheme: https
# Disable http2 for Prometheus issue: https://github.com/prometheus/prometheus/issues/10213
enable_http2: false
Expand All @@ -61,6 +65,7 @@ data:
cert_file: /etc/prom-certs/cert-chain.pem
key_file: /etc/prom-certs/key.pem
insecure_skip_verify: true
{{- end }}
{{- end }}
relabel_configs:
{{- if .Values.istio.enabled }}
Expand Down

0 comments on commit 184bfb9

Please sign in to comment.