From 2ae09c6bce8ae1aaeada77dcf7bc5db08518244f Mon Sep 17 00:00:00 2001 From: Michael McCulloch Date: Mon, 5 Feb 2024 06:36:45 -0700 Subject: [PATCH] specify address and bind port --- tasks/control-plane-aux-setup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/control-plane-aux-setup.yml b/tasks/control-plane-aux-setup.yml index 94e0abc..37a83c5 100644 --- a/tasks/control-plane-aux-setup.yml +++ b/tasks/control-plane-aux-setup.yml @@ -1,6 +1,6 @@ --- - name: Join control node to Kubernetes control plane. - command: "{{ kubernetes_join_command }} --control-plane --certificate-key {{ kubernetes_certificate }} --ignore-preflight-errors='all'" + command: "{{ kubernetes_join_command }} --control-plane --apiserver-advertise-address {{ kubernetes_apiserver_advertise_address }} --apiserver-bind-port 6443 --certificate-key {{ kubernetes_certificate }} --ignore-preflight-errors='all'" args: creates: /etc/kubernetes/kubelet.conf tags: ["skip_ansible_lint"]