Skip to content

Commit

Permalink
Merge pull request #157 from rooftopcellist/increase-wait-for-api-pod
Browse files Browse the repository at this point in the history
Increase how long we wait for the api pod to come up
  • Loading branch information
rooftopcellist authored Jan 6, 2024
2 parents 0e00851 + b89dbe9 commit 178da90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions roles/eda/tasks/deploy_eda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
- "eda_api_pod['resources'] | length"
- "eda_api_pod['resources'][0]['status']['phase'] == 'Running'"
- "eda_api_pod['resources'][0]['status']['containerStatuses'][0]['ready'] == true"
- "eda_api_pod['resources'][0]['status']['containerStatuses'][1]['ready'] == true"
retries: 60
delay: 5

- name: Set the resource pod name as a variable.
set_fact:
Expand Down
4 changes: 2 additions & 2 deletions roles/eda/templates/eda-api.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -208,14 +208,14 @@ spec:
port: 8000
failureThreshold: 10
periodSeconds: 10
initialDelaySeconds: 90
initialDelaySeconds: 20
livenessProbe:
httpGet:
path: /_healthz
port: 8000
failureThreshold: 10
periodSeconds: 10
initialDelaySeconds: 90
initialDelaySeconds: 20
{% if combined_api.resource_requirements is defined %}
resources: {{ combined_api.resource_requirements }}
{% endif %}
Expand Down

0 comments on commit 178da90

Please sign in to comment.