Skip to content

Commit

Permalink
fix: add readiness probe for lms
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Jul 17, 2024
1 parent 397d7dc commit dd1184d
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions drydock/templates/drydock/k8s/lifecycle/lms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,29 @@ spec:
command:
- "sleep"
- "30"
startupProbe:
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
httpGet:
path: /heartbeat
port: 8000
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
failureThreshold: 5
httpHeaders:
- name: Host
value: {{ LMS_HOST }}
terminationGracePeriodSeconds: 60

0 comments on commit dd1184d

Please sign in to comment.