chore: health check deploy

This commit is contained in:
sljeff 2023-04-25 10:49:57 +08:00
parent 7f47f2c83a
commit cdd111036a
2 changed files with 6 additions and 4 deletions

View File

@ -48,10 +48,11 @@ spec:
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
readinessProbe:
tcpSocket:
httpGet:
path: /api/healthcheck
port: 3000
initialDelaySeconds: 40
periodSeconds: 10
periodSeconds: 20
livenessProbe:
tcpSocket:
port: 3000

View File

@ -64,10 +64,11 @@ spec:
- name: xlog-image
mountPath: /app/.next/cache/images
readinessProbe:
tcpSocket:
httpGet:
path: /api/healthcheck
port: 3000
initialDelaySeconds: 40
periodSeconds: 10
periodSeconds: 20
livenessProbe:
tcpSocket:
port: 3000