Skip to content

Commit

Permalink
[k8s] remove ssl from frontend internal prom metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilou242 committed Nov 22, 2024
1 parent 8307d7e commit 5ff4ea6
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions kubernetes/helm/startree-thirdeye/templates/ui/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -140,18 +140,9 @@ spec:
}
{{- if .Values.prometheus.enabled }}
server {
listen 9090 {{- if .Values.tls.enabled }} ssl {{- end }};
{{- if .Values.tls.enabled }}
ssl_certificate /home/thirdeye/tls/tls.crt;
ssl_certificate_key /home/thirdeye/tls/tls.key;
ssl_password_file /home/thirdeye/tls-pass/pass;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
{{- end }}
listen 9090;
location = /admin/prometheus {
default_type text/plain;
{{- if .Values.tls.enabled }}
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;
{{- end }}
server_tokens off;
return 200 "thirdeye_version_info_frontend{environment_url=\"{{ default "unknown" (regexReplaceAll "(https?://)" .Values.ui.publicUrl "") }}\",semver=\"{{ .Values.ui.image.tag }}\"} 1.0\n";
}
Expand Down

0 comments on commit 5ff4ea6

Please sign in to comment.