fix: kube-vip was not rendering when enabled (#1169)
* fix: kube-vip was not rendering when enabled Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: forgot to save a file Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
646f335689
commit
295f2e7eac
5 files changed
+9
-9
No files matched your search
@@ -19,7 +19,7 @@ k3s_registration_address: "{{ kube_api_addr }}"
|
|||||||
k3s_server_manifests_templates:
|
k3s_server_manifests_templates:
|
||||||
- custom-cilium-helmchart.yaml.j2
|
- custom-cilium-helmchart.yaml.j2
|
||||||
- custom-coredns-helmchart.yaml.j2
|
- custom-coredns-helmchart.yaml.j2
|
||||||
#% if bootstrap_nodes.master | length > 1 and not bootstrap_kube_api_addr %#
|
#% if bootstrap_nodes.master | length > 1 or bootstrap_kube_api_addr %#
|
||||||
# /var/lib/rancher/k3s/server/manifests
|
# /var/lib/rancher/k3s/server/manifests
|
||||||
k3s_server_manifests_urls:
|
k3s_server_manifests_urls:
|
||||||
- url: https://raw.githubusercontent.com/kube-vip/website/main/content/manifests/rbac.yaml
|
- url: https://raw.githubusercontent.com/kube-vip/website/main/content/manifests/rbac.yaml
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
timezone: "#{ bootstrap_timezone }#"
|
timezone: "#{ bootstrap_timezone }#"
|
||||||
github_username: "#{ bootstrap_github_username }#"
|
github_username: "#{ bootstrap_github_username }#"
|
||||||
coredns_addr: "#{ bootstrap_service_cidr.split(',')[0] | nthhost(10) }#"
|
coredns_addr: "#{ bootstrap_service_cidr.split(',')[0] | nthhost(10) }#"
|
||||||
#% if bootstrap_nodes.master | length == 1 and not bootstrap_kube_api_addr %#
|
#% if bootstrap_nodes.master | length > 1 or bootstrap_kube_api_addr %#
|
||||||
kube_api_addr: "#{ bootstrap_nodes.master[0].address }#"
|
|
||||||
#% else %#
|
|
||||||
kube_api_addr: "#{ bootstrap_kube_api_addr }#"
|
kube_api_addr: "#{ bootstrap_kube_api_addr }#"
|
||||||
|
#% else %#
|
||||||
|
kube_api_addr: "#{ bootstrap_nodes.master[0].address }#"
|
||||||
#% endif %#
|
#% endif %#
|
||||||
cluster_cidr: "#{ bootstrap_cluster_cidr.split(',')[0] }#"
|
cluster_cidr: "#{ bootstrap_cluster_cidr.split(',')[0] }#"
|
||||||
service_cidr: "#{ bootstrap_service_cidr.split(',')[0] }#"
|
service_cidr: "#{ bootstrap_service_cidr.split(',')[0] }#"
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#% if bootstrap_distribution == 'k3s' and bootstrap_nodes.master | length > 1 and not bootstrap_kube_api_addr %#
|
#% if bootstrap_distribution == 'k3s' and (bootstrap_nodes.master | length > 1 or bootstrap_kube_api_addr) %#
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
|
|||||||
@@ -44,14 +44,14 @@ spec:
|
|||||||
api:
|
api:
|
||||||
sans:
|
sans:
|
||||||
- "#{ bootstrap_kube_api_addr }#"
|
- "#{ bootstrap_kube_api_addr }#"
|
||||||
#% if bootstrap_kubeapi_hostname is defined %#
|
#% if bootstrap_kube_api_hostname is defined %#
|
||||||
- "#{ bootstrap_kubeapi_hostname }#"
|
- "#{ bootstrap_kube_api_hostname }#"
|
||||||
#% endif %#
|
#% endif %#
|
||||||
#% for item in bootstrap_nodes.master %#
|
#% for item in bootstrap_nodes.master %#
|
||||||
#% if item.address != bootstrap_kube_api_addr %#
|
#% if item.address != bootstrap_kube_api_addr %#
|
||||||
- "#{ item.address }#"
|
- "#{ item.address }#"
|
||||||
#% endif %#
|
#% endif %#
|
||||||
#% if (bootstrap_kubeapi_hostname is not defined) or (item.name != bootstrap_kubeapi_hostname) %#
|
#% if (bootstrap_kube_api_hostname is not defined) or (item.name != bootstrap_kube_api_hostname) %#
|
||||||
- "#{ item.name }#"
|
- "#{ item.name }#"
|
||||||
#% endif %#
|
#% endif %#
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ bootstrap_node_cidr:
|
|||||||
bootstrap_kube_api_addr:
|
bootstrap_kube_api_addr:
|
||||||
# The hostname of the Kube API, set this if you intend to call the Kube API by hostname rather than IP
|
# The hostname of the Kube API, set this if you intend to call the Kube API by hostname rather than IP
|
||||||
# (Optional) This is currently only utilized in k0s and is added to the Kube API cert sans
|
# (Optional) This is currently only utilized in k0s and is added to the Kube API cert sans
|
||||||
# bootstrap_kubeapi_hostname:
|
# bootstrap_kube_api_hostname:
|
||||||
# The Load balancer IP for k8s_gateway, choose an available IP in your nodes network that is not being used
|
# The Load balancer IP for k8s_gateway, choose an available IP in your nodes network that is not being used
|
||||||
bootstrap_k8s_gateway_addr:
|
bootstrap_k8s_gateway_addr:
|
||||||
# The Load balancer IP for external ingress, choose an available IP in your nodes network that is not being used
|
# The Load balancer IP for external ingress, choose an available IP in your nodes network that is not being used
|
||||||
|
|||||||
Reference in new issue
Block a user