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
|
||||
|
||||
@@ -43,7 +43,7 @@ spec:
|
||||
- name: vip_retryperiod
|
||||
value: "2"
|
||||
- name: address
|
||||
value: 10.150.0.100
|
||||
value: {{ vip_address }}
|
||||
- name: prometheus_server
|
||||
value: :2112
|
||||
image: ghcr.io/kube-vip/kube-vip:v1.2.1
|
||||
|
||||
Reference in New Issue
Block a user