Skip to content

Commit b6b3d91

Browse files
committed
add healthz livenessProbe
1 parent 007fb5e commit b6b3d91

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

charts/factorio-server-charts/templates/deployment.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,9 @@ spec:
180180
{{- toYaml . | nindent 10 }}
181181
{{- end }}
182182
livenessProbe:
183-
exec:
184-
command:
185-
- sh
186-
- -c
187-
- curl -s localhost:24180/api/v1/factorio/console/command/version | grep -q -E '{"version":".*"}'
183+
httpGet:
184+
path: /healthz
185+
port: rcon-api
188186
periodSeconds: 10
189187
initialDelaySeconds: 5
190188
failureThreshold: 3

0 commit comments

Comments
 (0)