specify address and bind port

This commit is contained in:
Michael McCulloch 2024-02-05 06:36:45 -07:00
parent 54ff919347
commit 2ae09c6bce

View File

@ -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"]