Skip to content

Commit

Permalink
Add probes to staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zwolf committed Oct 4, 2023
1 parent 3c3173f commit d56d909
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions kubernetes/deployment-staging.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,36 @@ spec:
limits:
memory: "600Mi"
cpu: "500m"
startupProbe:
httpGet:
path: /
port: 80
httpHeaders:
- name: X-Forwarded-Proto
value: https
# wait 6 * 10 seconds(default periodSeconds) for the container to start
# after this succeeds once the liveness probe takes over
failureThreshold: 6
livenessProbe:
httpGet:
path: /
port: 80
httpHeaders:
- name: X-Forwarded-Proto
value: https
# allow a longer response time than 1s
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
httpHeaders:
- name: X-Forwarded-Proto
value: https
# start checking for readiness after 20s (to serve traffic)
initialDelaySeconds: 20
# allow a longer response time than 1s
timeoutSeconds: 10
env:
- name: RAILS_LOG_TO_STDOUT
value: "true"
Expand Down

0 comments on commit d56d909

Please sign in to comment.