Skip to content

Instantly share code, notes, and snippets.

@albertogalan
Last active June 29, 2020 17:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albertogalan/d4b1878afd30ce9bc4ba44352718e111 to your computer and use it in GitHub Desktop.
Save albertogalan/d4b1878afd30ce9bc4ba44352718e111 to your computer and use it in GitHub Desktop.
readinessprobe livenessProbe
containers:
- resources:
limits:
memory: 1Gi
readinessProbe:
exec:
command:
- /usr/libexec/check-container
initialDelaySeconds: 5
timeoutSeconds: 1
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
terminationMessagePath: /dev/termination-log
name: postgresql
livenessProbe:
exec:
command:
- /usr/libexec/check-container
- '--live'
initialDelaySeconds: 120
timeoutSeconds: 10
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment