Skip to content

Commit

Permalink
fix: the prom config when istio migration (#1180)
Browse files Browse the repository at this point in the history
* fix: the prom config when istio enabled

Signed-off-by: ericsyh <[email protected]>

* fix lint

Signed-off-by: ericsyh <[email protected]>

---------

Signed-off-by: ericsyh <[email protected]>
(cherry picked from commit eddd814)
  • Loading branch information
ericsyh committed Oct 22, 2024
1 parent 3cd08ca commit 43e2025
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 @@ -68,6 +68,10 @@ data:
- {{ template "pulsar.namespace" . }}
{{- end }}
{{- if .Values.istio.enabled }}
{{- if .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 @@ -76,6 +80,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 @@ -64,6 +64,10 @@ data:
- {{ template "pulsar.namespace" . }}
{{- end }}
{{- if .Values.istio.enabled }}
{{- if .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 @@ -72,6 +76,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 43e2025

Please sign in to comment.