From 82cf2f812d14378bff38e35b679bd5bc5ab081b0 Mon Sep 17 00:00:00 2001 From: Mikhail Vintcukevich <47250461+Mishavint@users.noreply.github.com> Date: Tue, 27 Jun 2023 11:59:04 +0300 Subject: [PATCH 1/2] fix: check for master node to be ready (#51) --- tasks/init-control-plane.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/init-control-plane.yml b/tasks/init-control-plane.yml index b86edfb..e9f60f0 100644 --- a/tasks/init-control-plane.yml +++ b/tasks/init-control-plane.yml @@ -57,3 +57,13 @@ --kubeconfig=/etc/kubernetes/admin.conf \ > /tmp/flannel.log 2>&1 changed_when: False + +- name: Check master node until ready + ansible.builtin.shell: | + kubectl get node {{ k8s_cluster_node_name }} \ + --kubeconfig=/etc/kubernetes/admin.conf -o json | jq -Mr '.status.conditions[4].status' + register: kubectl_response + changed_when: false + until: kubectl_response.stdout == "True" + retries: 48 + delay: 5 From 6409f2d149fd8a865ca2df2407f79e8bff13e17d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 27 Jun 2023 09:12:46 +0000 Subject: [PATCH 2/2] chore(release): version 1.5.1 [skip ci] ### [1.5.1](https://github.com/cloud-labs-infra/ansible-k8s-cluster/compare/v1.5.0...v1.5.1) (2023-06-27) ### Bug Fixes * check for master node to be ready ([#51](https://github.com/cloud-labs-infra/ansible-k8s-cluster/issues/51)) ([82cf2f8](https://github.com/cloud-labs-infra/ansible-k8s-cluster/commit/82cf2f812d14378bff38e35b679bd5bc5ab081b0)) --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f5e916..727bdac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. +### [1.5.1](https://github.com/cloud-labs-infra/ansible-k8s-cluster/compare/v1.5.0...v1.5.1) (2023-06-27) + + +### Bug Fixes + +* check for master node to be ready ([#51](https://github.com/cloud-labs-infra/ansible-k8s-cluster/issues/51)) ([82cf2f8](https://github.com/cloud-labs-infra/ansible-k8s-cluster/commit/82cf2f812d14378bff38e35b679bd5bc5ab081b0)) + ## [1.5.0](https://github.com/cloud-labs-infra/ansible-k8s-cluster/compare/v1.4.6...v1.5.0) (2023-06-22)