Merge pull request #428 from Crossbell-Box/feat/healthcheck-deploy

chore: health check deploy
This commit is contained in:
Kind Jeff 2023-04-25 10:57:29 +08:00 committed by GitHub
commit ee3166db4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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