From 5e84dabb46ec26e3b5fa3cee278f076fe2414dae Mon Sep 17 00:00:00 2001 From: Maxim Snezhkov Date: Wed, 12 Dec 2018 20:21:54 +0700 Subject: [PATCH] Fix assertion for alone etcd nodes (#3847) --- roles/kubernetes/preinstall/tasks/0020-verify-settings.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml index c779ff94a..0369c094f 100644 --- a/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml +++ b/roles/kubernetes/preinstall/tasks/0020-verify-settings.yml @@ -108,7 +108,7 @@ - name: Stop if RBAC and anonymous-auth are not enabled when insecure port is disabled assert: that: rbac_enabled and kube_api_anonymous_auth - when: kube_apiserver_insecure_port == 0 + when: kube_apiserver_insecure_port == 0 and inventory_hostname in groups['kube-master'] ignore_errors: "{{ ignore_assert_errors }}" - name: Stop if kernel version is too low