Skip to content

Commit d98e96f

Browse files
fix: correct PostgreSQL sidecar container probes and port protocol
Co-authored-by: vincentchalamon <407859+vincentchalamon@users.noreply.github.com>
1 parent cf9fb03 commit d98e96f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

helm/api-platform/templates/keycloak-deployment.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,19 @@ spec:
130130
{{- toYaml . | nindent 12 }}
131131
{{- end }}
132132
ports:
133-
- name: main
133+
- name: postgresql
134134
containerPort: 5432
135-
protocol: UDP
135+
protocol: TCP
136136
livenessProbe:
137-
httpGet:
138-
path: /
139-
port: main
137+
tcpSocket:
138+
port: postgresql
139+
initialDelaySeconds: 30
140+
periodSeconds: 10
140141
readinessProbe:
141-
httpGet:
142-
path: /
143-
port: main
142+
tcpSocket:
143+
port: postgresql
144+
initialDelaySeconds: 5
145+
periodSeconds: 10
144146
resources:
145147
{{- toYaml .Values.keycloak.postgresql.resources | nindent 12 }}
146148
{{- end }}

0 commit comments

Comments
 (0)