From e9a69457befe0d3d5035b52d34c5ad209e881862 Mon Sep 17 00:00:00 2001 From: tsvetkov Date: Thu, 5 Mar 2026 14:22:29 +0000 Subject: [PATCH] amend deployment --- ansible/inventory/hosts.yml | 6 +++--- ansible/playbooks/deploy.yml | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ansible/inventory/hosts.yml b/ansible/inventory/hosts.yml index 02feddb..a1621fc 100644 --- a/ansible/inventory/hosts.yml +++ b/ansible/inventory/hosts.yml @@ -6,14 +6,14 @@ all: vars: # --- Project paths --- - project_dir: "{{ playbook_dir }}/.." + project_dir: "/home/username/elk-k8s-deployment/" k8s_manifests_dir: "{{ project_dir }}/k8s" scripts_dir: "{{ project_dir }}/scripts" certs_dir: "{{ project_dir }}/certs" # --- Minikube --- - minikube_cpus: 4 - minikube_memory: 8192 + minikube_cpus: 4 + minikube_memory: 12200 minikube_disk_size: "40g" minikube_driver: docker diff --git a/ansible/playbooks/deploy.yml b/ansible/playbooks/deploy.yml index 62e6bdb..2fe46b0 100644 --- a/ansible/playbooks/deploy.yml +++ b/ansible/playbooks/deploy.yml @@ -113,7 +113,8 @@ tags: [minikube] block: - name: Check if Minikube is running - ansible.builtin.command: minikube status --format='{{.Host}}' + # ansible.builtin.command: minikube status --format='{{.Host}}' + ansible.builtin.command: minikube status register: minikube_status ignore_errors: true changed_when: false @@ -197,7 +198,7 @@ - name: Wait for Elasticsearch to be ready ansible.builtin.command: > kubectl wait --for=condition=ready pod -l app=elasticsearch - -n elk --timeout=300s + -n elk --timeout=420s changed_when: false # ======================================================================= @@ -248,6 +249,12 @@ -n elk --timeout=180s changed_when: false + - name: Wait for Authentik Worker + ansible.builtin.command: > + kubectl wait --for=condition=ready pod -l app=authentik-worker + -n elk --timeout=180s + changed_when: false + # ======================================================================= # PHASE 10 — Kibana # =======================================================================