From 91563417922219fd5661fcf5839ebc3ca5d43b0b Mon Sep 17 00:00:00 2001 From: guppy Date: Sun, 14 May 2023 09:09:46 +0200 Subject: [PATCH] Ajout du test final sur Gitea --- README.md | 3 ++- group_vars/all | 2 +- roles/gitea-helm/tasks/main.yaml | 12 ++++++++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c951514..83bac15 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # K8s cluster on Debian 11 Tested successfully on 14/05/2023 with kubernetes 1.27.1, containerd 1.6.21 and flannel 1.1.2 - +Durée approximative du deployment: 8 minutes + kubeadm version containerd --version /opt/cni/bin/flannel --version diff --git a/group_vars/all b/group_vars/all index dc1e0f8..2ff58de 100644 --- a/group_vars/all +++ b/group_vars/all @@ -11,4 +11,4 @@ flannel: gitea: replicacount: 3 servicetype: LoadBalancer - externalips: 192.168.230.20 + externalips: 192.168.230.10 diff --git a/roles/gitea-helm/tasks/main.yaml b/roles/gitea-helm/tasks/main.yaml index 932a49a..e438269 100644 --- a/roles/gitea-helm/tasks/main.yaml +++ b/roles/gitea-helm/tasks/main.yaml @@ -12,3 +12,15 @@ helm repo add gitea-charts https://dl.gitea.io/charts/ helm repo update helm install -f /tmp/values.yaml gitea gitea-charts/gitea + +- name: Attente du démarrage de Gitea + retries: 6 + wait_for: + host: "{{ gitea.externalips }}" + port: 3000 + delay: 10 + state: present + +- name: + debug: + msg: Le serveur Gitea est operationel est joignable sur http://{{ gitea.externalips }}:3000