Skip to content

Commit

Permalink
chore: remove startup probe and increase timeout of readiness probe
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Jul 17, 2024
1 parent dd1184d commit 5910030
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions drydock/templates/drydock/k8s/lifecycle/lms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,12 @@ spec:
command:
- "sleep"
- "30"
startupProbe: # Make sure the service has started correctly
# We provide 10 * 5 seconds to the service to start before restarting the pod
successThreshold: 1
failureThreshold: 10
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
httpGet:
path: /heartbeat
port: 8000
httpHeaders:
- name: Host
value: {{ LMS_HOST }}
readinessProbe: # Make sure the pod can answer traffic before handling any requests
# Only route traffic if the pod is alive, and has passed two succesful checks (max 10s)
successThreshold: 2
failureThreshold: 2
periodSeconds: 5
timeoutSeconds: 3
periodSeconds: 10
timeoutSeconds: 5
httpGet:
path: /heartbeat
port: 8000
Expand Down

0 comments on commit 5910030

Please sign in to comment.