From ff3cd61cc3121d64eafe5b91bdc2d9a62d8ce978 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 17 Dec 2024 12:26:01 +0100 Subject: [PATCH 1/3] Remove delete pods --- artifacts/k8s_galaxy.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index aa79672..3b60e15 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -177,20 +177,20 @@ command: helm install --create-namespace -n {{ NAMESPACE }} galaxy galaxy/galaxy --timeout 10m -f /opt/galaxy_values.yaml --version 5.19.0 environment: KUBECONFIG: /etc/kubernetes/admin.conf - ignore_errors: true - - - name: Wait pods to be ready - pause: - minutes: 3 - - - name: Delete Pending stuck pods - command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending" - register: error_pods - changed_when: error_pods.stdout_lines | length > 1 - retries: 5 - delay: 120 - until: error_pods.stdout_lines | length <= 1 - - - fail: - msg: "Error waiting for pods to be ready" - when: error_pods.stdout_lines | length > 1 +# ignore_errors: true + +# - name: Wait pods to be ready +# pause: +# minutes: 3 + +# - name: Delete Pending stuck pods +# command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending" +# register: error_pods +# changed_when: error_pods.stdout_lines | length > 1 +# retries: 5 +# delay: 120 +# until: error_pods.stdout_lines | length <= 1 + +# - fail: +# msg: "Error waiting for pods to be ready" +# when: error_pods.stdout_lines | length > 1 From 992a4704c3c7dcfec84f81adf42d005934f96423 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 17 Dec 2024 13:34:43 +0100 Subject: [PATCH 2/3] Add nginx port --- artifacts/k8s_galaxy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index 3b60e15..bee65a4 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -143,6 +143,8 @@ dest: /opt/galaxy_values.yaml mode: '644' content: | + nginx: + containerPort: 8000 persistence: accessMode: ReadWriteOnce cvmfs: From 05d120525381f1a2dfd492794934539fc3b51463 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 17 Dec 2024 14:18:12 +0100 Subject: [PATCH 3/3] Revert change --- artifacts/k8s_galaxy.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index bee65a4..2fa350f 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -179,20 +179,20 @@ command: helm install --create-namespace -n {{ NAMESPACE }} galaxy galaxy/galaxy --timeout 10m -f /opt/galaxy_values.yaml --version 5.19.0 environment: KUBECONFIG: /etc/kubernetes/admin.conf -# ignore_errors: true - -# - name: Wait pods to be ready -# pause: -# minutes: 3 - -# - name: Delete Pending stuck pods -# command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending" -# register: error_pods -# changed_when: error_pods.stdout_lines | length > 1 -# retries: 5 -# delay: 120 -# until: error_pods.stdout_lines | length <= 1 - -# - fail: -# msg: "Error waiting for pods to be ready" -# when: error_pods.stdout_lines | length > 1 + ignore_errors: true + + - name: Wait pods to be ready + pause: + minutes: 3 + + - name: Delete Pending stuck pods + command: kubectl delete pods -n {{ NAMESPACE }} --field-selector="status.phase=Pending" + register: error_pods + changed_when: error_pods.stdout_lines | length > 1 + retries: 5 + delay: 120 + until: error_pods.stdout_lines | length <= 1 + + - fail: + msg: "Error waiting for pods to be ready" + when: error_pods.stdout_lines | length > 1