Skip to content

Commit

Permalink
servers: use separate port for health checks
Browse files Browse the repository at this point in the history
This will allow health checks to work even if the proxy protocol
is enabled on the main port.
  • Loading branch information
rcarpa committed Nov 29, 2023
1 parent 361dbf7 commit e978a6f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/rucio-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rucio-server
version: 32.0.0
version: 33.0.0
apiVersion: v1
description: A Helm chart to deploy servers for Rucio
keywords:
Expand Down
21 changes: 15 additions & 6 deletions charts/rucio-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@ spec:
- name: https
containerPort: 443
protocol: TCP
{{- if .Values.useSSL }}
- name: health
containerPort: 444
protocol: TCP
{{- else }}
- name: health
containerPort: 81
protocol: TCP
{{- end }}
{{- if .Values.monitoring.enabled }}
- name: metrics
containerPort: {{ .Values.monitoring.nativeMetricsPort }}
Expand All @@ -185,23 +194,19 @@ spec:
readinessProbe:
httpGet:
path: /ping
port: health
{{- if .Values.useSSL }}
scheme: HTTPS
port: 443
{{- else }}
port: 80
{{- end }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
livenessProbe:
httpGet:
path: /ping
port: health
{{- if .Values.useSSL }}
scheme: HTTPS
port: 443
{{- else }}
port: 80
{{- end }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
Expand All @@ -221,11 +226,15 @@ spec:
{{- if .Values.useSSL }}
- name: RUCIO_ENABLE_SSL
value: "True"
- name: RUCIO_HEALTH_CHECK_PORT
value: "444"
- name: OPENSSL_ALLOW_PROXY_CERTS
value: "1"
{{- else }}
- name: RUCIO_ENABLE_SSL
value: "False"
- name: RUCIO_HEALTH_CHECK_PORT
value: "81"
{{- end }}
{{- if .Values.monitoring.enabled }}
- name: RUCIO_METRICS_PORT
Expand Down

0 comments on commit e978a6f

Please sign in to comment.