Skip to content

Commit

Permalink
feat(kube-vip)!: Use auto detection of kube-vip interface (onedr0p#331)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
onedr0p authored May 23, 2022
1 parent 1fa1628 commit 63e29a7
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 33 deletions.
6 changes: 0 additions & 6 deletions .config.sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,6 @@ export BOOTSTRAP_METALLB_TRAEFIK_ADDR=""
# e.g. age15uzrw396e67z9wdzsxzdk7ka0g2gr3l460e0slaea563zll3hdfqwqxdta
export BOOTSTRAP_AGE_PUBLIC_KEY=""

# The network interface on the host kube-vip should attach to
# Look this up on your nodes to verify what NIC to use
# This name should be the same across your nodes, see:
# https://github.com/k8s-at-home/template-cluster-k3s/issues/310
# e.g. eno1
export BOOTSTRAP_KUBE_VIP_INTERFACE=""
# The IP Address to use with KubeVIP
# Pick a unused IP that is on the same network as your nodes
# and outside the ${BOOTSTRAP_METALLB_LB_RANGE} range
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ spec:
env:
- name: vip_arp
value: "true"
- name: vip_interface
value: "{{ kubevip_interface }}"
- name: port
value: "6443"
- name: vip_cidr
Expand Down
17 changes: 0 additions & 17 deletions provision/ansible/roles/ubuntu/tasks/checks.yml

This file was deleted.

4 changes: 0 additions & 4 deletions provision/ansible/roles/ubuntu/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
---
- include: checks.yml
tags:
- checks

- include: locale.yml
tags:
- locale
Expand Down
2 changes: 0 additions & 2 deletions tmpl/ansible/kube-vip.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
---
# (string) The interface on the host kube-vip should attach to
kubevip_interface: "${BOOTSTRAP_KUBE_VIP_INTERFACE}"
# (string) The ARP address kube-vip broadcasts
kubevip_address: "${BOOTSTRAP_KUBE_VIP_ADDR}"
2 changes: 0 additions & 2 deletions tmpl/cluster/kube-vip-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ spec:
env:
- name: vip_arp
value: "true"
- name: vip_interface
value: "${BOOTSTRAP_KUBE_VIP_INTERFACE}"
- name: port
value: "6443"
- name: vip_cidr
Expand Down

0 comments on commit 63e29a7

Please sign in to comment.