feat!: rename BOOTSTRAP_ANSIBLE_KUBE_VIP_* to BOOTSTRAP_KUBE_VIP_*
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
4 files changed
+20
-14
No files matched your search
+12
-6
@@ -5,11 +5,13 @@
|
|||||||
# The repo you created from this template
|
# The repo you created from this template
|
||||||
# e.g. https://github.com/k8s-at-home/home-cluster
|
# e.g. https://github.com/k8s-at-home/home-cluster
|
||||||
export BOOTSTRAP_GIT_REPOSITORY=""
|
export BOOTSTRAP_GIT_REPOSITORY=""
|
||||||
|
|
||||||
# To enable Flux to update your cluster on `git push` set the following to one of:
|
# To enable Flux to update your cluster on `git push` set the following to one of:
|
||||||
# `ignored` - this feature will be disabled
|
# `ignored` - this feature will be disabled
|
||||||
# `generated` - this will generate a token and print it in the logs
|
# `generated` - this will generate a token and print it in the logs
|
||||||
# Set this to any other string and it will be used for the secret
|
# Set this to any other string and it will be used for the secret
|
||||||
export BOOTSTRAP_FLUX_GITHUB_WEBHOOK_SECRET="ignored"
|
export BOOTSTRAP_FLUX_GITHUB_WEBHOOK_SECRET="ignored"
|
||||||
|
|
||||||
# Choose one of your cloudflare domains
|
# Choose one of your cloudflare domains
|
||||||
# e.g. k8s-at-home.com
|
# e.g. k8s-at-home.com
|
||||||
export BOOTSTRAP_CLOUDFLARE_DOMAIN=""
|
export BOOTSTRAP_CLOUDFLARE_DOMAIN=""
|
||||||
@@ -17,6 +19,7 @@ export BOOTSTRAP_CLOUDFLARE_DOMAIN=""
|
|||||||
export BOOTSTRAP_CLOUDFLARE_EMAIL=""
|
export BOOTSTRAP_CLOUDFLARE_EMAIL=""
|
||||||
# Your global Cloudflare API Key
|
# Your global Cloudflare API Key
|
||||||
export BOOTSTRAP_CLOUDFLARE_APIKEY=""
|
export BOOTSTRAP_CLOUDFLARE_APIKEY=""
|
||||||
|
|
||||||
# Pick a range of unused IPs that are on the same network as your nodes
|
# Pick a range of unused IPs that are on the same network as your nodes
|
||||||
# You don't need many IPs, just choose 10 IPs to start with
|
# You don't need many IPs, just choose 10 IPs to start with
|
||||||
# e.g. 192.168.1.220-192.168.1.230
|
# e.g. 192.168.1.220-192.168.1.230
|
||||||
@@ -28,24 +31,27 @@ export BOOTSTRAP_METALLB_K8S_GATEWAY_ADDR=""
|
|||||||
# that doesn't conflict with any other IP addresses here
|
# that doesn't conflict with any other IP addresses here
|
||||||
# e.g. 192.168.1.221
|
# e.g. 192.168.1.221
|
||||||
export BOOTSTRAP_METALLB_TRAEFIK_ADDR=""
|
export BOOTSTRAP_METALLB_TRAEFIK_ADDR=""
|
||||||
|
|
||||||
# Age Public Key - string should start with age
|
# Age Public Key - string should start with age
|
||||||
# e.g. age15uzrw396e67z9wdzsxzdk7ka0g2gr3l460e0slaea563zll3hdfqwqxdta
|
# e.g. age15uzrw396e67z9wdzsxzdk7ka0g2gr3l460e0slaea563zll3hdfqwqxdta
|
||||||
export BOOTSTRAP_AGE_PUBLIC_KEY=""
|
export BOOTSTRAP_AGE_PUBLIC_KEY=""
|
||||||
|
|
||||||
#
|
|
||||||
# Ansible related variables
|
|
||||||
#
|
|
||||||
|
|
||||||
# The network interface on the host kube-vip should attach to
|
# The network interface on the host kube-vip should attach to
|
||||||
# Look this up on your nodes to verify what NIC to use
|
# 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
|
# e.g. eno1
|
||||||
export BOOTSTRAP_ANSIBLE_KUBE_VIP_INTERFACE=""
|
export BOOTSTRAP_KUBE_VIP_INTERFACE=""
|
||||||
# The IP Address to use with KubeVIP
|
# The IP Address to use with KubeVIP
|
||||||
# Pick a unused IP that is on the same network as your nodes
|
# Pick a unused IP that is on the same network as your nodes
|
||||||
# and outside the ${BOOTSTRAP_METALLB_LB_RANGE} range
|
# and outside the ${BOOTSTRAP_METALLB_LB_RANGE} range
|
||||||
# and doesn't conflict with any other IP addresses here
|
# and doesn't conflict with any other IP addresses here
|
||||||
# e.g. 192.168.1.254
|
# e.g. 192.168.1.254
|
||||||
export BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR=""
|
export BOOTSTRAP_KUBE_VIP_ADDR=""
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ansible related variables
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Default prefixes for hostnames assigned by Ansible
|
# Default prefixes for hostnames assigned by Ansible
|
||||||
|
|||||||
+4
-4
@@ -174,8 +174,8 @@ verify_binaries() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
verify_kubevip() {
|
verify_kubevip() {
|
||||||
_has_envar "BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR"
|
_has_envar "BOOTSTRAP_KUBE_VIP_ADDR"
|
||||||
_has_valid_ip "${BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR}" "BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR"
|
_has_valid_ip "${BOOTSTRAP_KUBE_VIP_ADDR}" "BOOTSTRAP_KUBE_VIP_ADDR"
|
||||||
}
|
}
|
||||||
|
|
||||||
verify_metallb() {
|
verify_metallb() {
|
||||||
@@ -284,8 +284,8 @@ verify_ansible_hosts() {
|
|||||||
_has_envar "${node_control}"
|
_has_envar "${node_control}"
|
||||||
_has_optional_envar "${node_hostname}"
|
_has_optional_envar "${node_hostname}"
|
||||||
|
|
||||||
if [[ "${!node_addr}" == "${BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR}" ]]; then
|
if [[ "${!node_addr}" == "${BOOTSTRAP_KUBE_VIP_ADDR}" ]]; then
|
||||||
_log "ERROR" "The kube-vip IP '${BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR}' should not be the same as the IP for node '${!node_addr}'"
|
_log "ERROR" "The kube-vip IP '${BOOTSTRAP_KUBE_VIP_ADDR}' should not be the same as the IP for node '${!node_addr}'"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
# (string) The interface on the host kube-vip should attach to
|
# (string) The interface on the host kube-vip should attach to
|
||||||
kubevip_interface: "${BOOTSTRAP_ANSIBLE_KUBE_VIP_INTERFACE}"
|
kubevip_interface: "${BOOTSTRAP_KUBE_VIP_INTERFACE}"
|
||||||
# (string) The ARP address kube-vip broadcasts
|
# (string) The ARP address kube-vip broadcasts
|
||||||
kubevip_address: "${BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR}"
|
kubevip_address: "${BOOTSTRAP_KUBE_VIP_ADDR}"
|
||||||
@@ -28,7 +28,7 @@ spec:
|
|||||||
- name: vip_arp
|
- name: vip_arp
|
||||||
value: "true"
|
value: "true"
|
||||||
- name: vip_interface
|
- name: vip_interface
|
||||||
value: "${BOOTSTRAP_ANSIBLE_KUBE_VIP_INTERFACE}"
|
value: "${BOOTSTRAP_KUBE_VIP_INTERFACE}"
|
||||||
- name: port
|
- name: port
|
||||||
value: "6443"
|
value: "6443"
|
||||||
- name: vip_cidr
|
- name: vip_cidr
|
||||||
@@ -40,7 +40,7 @@ spec:
|
|||||||
- name: svc_enable
|
- name: svc_enable
|
||||||
value: "false"
|
value: "false"
|
||||||
- name: address
|
- name: address
|
||||||
value: "${BOOTSTRAP_ANSIBLE_KUBE_VIP_ADDR}"
|
value: "${BOOTSTRAP_KUBE_VIP_ADDR}"
|
||||||
securityContext:
|
securityContext:
|
||||||
capabilities:
|
capabilities:
|
||||||
add:
|
add:
|
||||||
|
|||||||
Reference in new issue
Block a user