Skip to content

Commit

Permalink
Add header of health check
Browse files Browse the repository at this point in the history
  • Loading branch information
yaalsn committed Nov 28, 2023
1 parent e86b8df commit 6cb2ec2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ data:
health_check.sh: |
#!/bin/bash
{{- if .Values.tls.presto.enabled }}
curl --silent https://{{ template "presto.service" . }}:{{ .Values.presto.coordinator.ports.https }}/v1/node -k | tr "," "\n" | grep --silent $(echo ${POD_IP} | tr "." "-")
curl --header "X-Trino-User: test-user" --silent https://{{ template "presto.service" . }}:{{ .Values.presto.coordinator.ports.https }}/v1/node -k | tr "," "\n" | grep --silent $(echo ${POD_IP} | tr "." "-")
{{- else }}
curl --silent http://{{ template "presto.service" . }}:{{ .Values.presto.coordinator.ports.http }}/v1/node | tr "," "\n" | grep --silent $(echo ${POD_IP} | tr "." "-")
curl --header "X-Trino-User: test-user" --silent http://{{ template "presto.service" . }}:{{ .Values.presto.coordinator.ports.http }}/v1/node | tr "," "\n" | grep --silent $(echo ${POD_IP} | tr "." "-")
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 6cb2ec2

Please sign in to comment.