From ebed5a1c0b646524e0ca649a595ffc5924b78205 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 5 Mar 2024 09:40:22 +0100 Subject: [PATCH 1/2] Fix recipe --- artifacts/k8s_galaxy.yml | 21 +++++++++------------ templates/k8s_galaxy.yaml | 9 +++++++++ 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index 51bab43..4afd45b 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -90,22 +90,19 @@ chdir: /opt/galaxy-helm/galaxy environment: KUBECONFIG: /etc/kubernetes/admin.conf - ignore_errors: true - register: helm_install - - name: Undeploy galaxy app - command: helm uninstall --namespace {{ NAMESPACE }} galaxy - when: helm_install is failed - - - fail: - msg: "Error installing galaxy helm chat" - when: helm_install is failed - - - name: Wait a bit for pods to start + - name: Wait pods to be ready pause: - seconds: 120 + minutes: 3 - name: Delete CreateContainerConfigError 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 \ No newline at end of file diff --git a/templates/k8s_galaxy.yaml b/templates/k8s_galaxy.yaml index 1d32214..2fc8b98 100644 --- a/templates/k8s_galaxy.yaml +++ b/templates/k8s_galaxy.yaml @@ -23,6 +23,15 @@ topology_template: description: Administrative users - set this to a comma-separated list of valid Galaxy users (email addresses). default: 'admin@admin.com' + # Restrict some K8s input values + + kube_cri_runtime: + type: string + description: CRI Runtime to use with Kubernetes + default: "docker" + constraints: + - valid_values: [ docker ] + node_templates: galaxy: From da63b0db62988031e9f7c8f9aadaaa9fbc9b720a Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 5 Mar 2024 09:43:58 +0100 Subject: [PATCH 2/2] Fix recipe --- artifacts/k8s_galaxy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/artifacts/k8s_galaxy.yml b/artifacts/k8s_galaxy.yml index 4afd45b..4baff05 100644 --- a/artifacts/k8s_galaxy.yml +++ b/artifacts/k8s_galaxy.yml @@ -105,4 +105,4 @@ - fail: msg: "Error waiting for pods to be ready" - when: error_pods.stdout_lines | length > 1 \ No newline at end of file + when: error_pods.stdout_lines | length > 1