feat(kube-vip)!: Use auto detection of kube-vip interface (#331)
* Remove kube-vip interface config setting * Remove kube-vip interface Ansible variable * Remove kube-vip interface from cluster manifest * Remove kube-vip interface from Ansible deployment * Delete checks for consistent kube-vip interface names * Remove checks task from Ansible role
This commit is contained in:
1 parent
1fa16287e8
commit
63e29a7257
6 files changed
-33
No files matched your search
@@ -27,8 +27,6 @@ spec:
|
||||
env:
|
||||
- name: vip_arp
|
||||
value: "true"
|
||||
- name: vip_interface
|
||||
value: "{{ kubevip_interface }}"
|
||||
- name: port
|
||||
value: "6443"
|
||||
- name: vip_cidr
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
- name: Check if network interface provided for kube-vip is valid
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- ansible_{{ kubevip_interface }}.device is defined
|
||||
- ansible_{{ kubevip_interface }}['ipv4']['address'] | ansible.utils.ipaddr('{{ ansible_host }}')
|
||||
success_msg: |-
|
||||
kube-vip is able to use {{ kubevip_interface }} for this node
|
||||
fail_msg: |-
|
||||
This node does not have a network interface called {{ kubevip_interface }}.
|
||||
|
||||
You either provided the wrong BOOTSTRAP_KUBE_VIP_INTERFACE value or your nodes have different network interface names.
|
||||
|
||||
See this link on how to set static interface names across your nodes by using netplan
|
||||
https://askubuntu.com/a/1317043
|
||||
when:
|
||||
"'master' in group_names"
|
||||
@@ -1,8 +1,4 @@
|
||||
---
|
||||
- include: checks.yml
|
||||
tags:
|
||||
- checks
|
||||
|
||||
- include: locale.yml
|
||||
tags:
|
||||
- locale
|
||||
|
||||
Reference in new issue
Block a user