Skip to content

Commit

Permalink
ci: fix readinessprobe on postgres container
Browse files Browse the repository at this point in the history
Follow-up to #4074, after additional migration testing of indexer nodes.
  • Loading branch information
conorsch committed Mar 22, 2024
1 parent efb364e commit 77b7bfd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions deployments/charts/penumbra-node/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ spec:
- key: "tls.key"
path: "server.key"
{{ end }}
{{- if .Values.maintenanceMode }}
{{- else }}
initContainers:
- name: pd-init
securityContext:
Expand Down Expand Up @@ -171,6 +173,7 @@ spec:
- name: db-certificates
mountPath: /opt/postgres-certificates
{{- end }}
{{- end }}

containers:
- name: pd
Expand Down Expand Up @@ -262,7 +265,7 @@ spec:
command:
- sleep
- infinity
{{- end }}
{{- else }}
{{- if .Values.postgres.certificateSecretName }}
args:
- -c
Expand All @@ -272,6 +275,7 @@ spec:
- -c
- ssl_key_file=/var/lib/postgresql/certs/server.key
{{- end }}
{{- end }}
ports:
- name: postgres
containerPort: 5432
Expand Down Expand Up @@ -305,12 +309,14 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.labels['apps.kubernetes.io/pod-index']

{{- if .Values.maintenanceMode }}
{{- else }}
readinessProbe:
tcpSocket:
port: 5432
timeoutSeconds: 10
initialDelaySeconds: 10
{{- end }}
resources:
{{- toYaml .Values.postgres.resources | nindent 12 }}
volumeMounts:
Expand Down

0 comments on commit 77b7bfd

Please sign in to comment.