feat: add kube-vip to control plane role
This commit is contained in:
@@ -1,10 +1,13 @@
|
||||
- name: Install kube-vip
|
||||
ansible.builtin.import_tasks: kube-vip.yaml
|
||||
|
||||
- name: Initialise Kubernetes cluster
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- kubeadm
|
||||
- init
|
||||
- --pod-network-cidr=172.16.0.0/16
|
||||
- --control-plane-endpoint={{ ansible_facts['default_ipv4']['address'] }}:6443
|
||||
- --control-plane-endpoint={{ vip_address }}:6443
|
||||
- --upload-certs
|
||||
args:
|
||||
creates: /etc/kubernetes/admin.conf
|
||||
|
||||
Reference in New Issue
Block a user