Skip to content

Commit

Permalink
Remove waitpods
Browse files Browse the repository at this point in the history
  • Loading branch information
micafer authored Jan 16, 2025
1 parent 3bd686f commit 6b05709
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions artifacts/k8s_galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,17 +179,3 @@
command: helm install --create-namespace -n {{ NAMESPACE }} galaxy galaxy/galaxy --timeout 10m -f /opt/galaxy_values.yaml --version 5.18.0
environment:
KUBECONFIG: /etc/kubernetes/admin.conf

- name: Wait pods to be ready
pause:
minutes: 5

- name: Delete Pending stuck pods (CreateContainerConfigError)
shell: kubectl get pods -n {{ NAMESPACE }} -o jsonpath='{range .items[?(@.status.containerStatuses[0].state.waiting.reason=="CreateContainerConfigError")]}{.metadata.namespace} {.metadata.name}{"\n"}{end}' | xargs -r -n2 sh -c 'kubectl delete pod $1 -n $0'
register: error_pods
changed_when: error_pods.stdout_lines | length > 1
retries: 5
delay: 120
until: error_pods.stdout_lines | length < 1
environment:
KUBECONFIG: /etc/kubernetes/admin.conf

0 comments on commit 6b05709

Please sign in to comment.