feat: implement kube-vip for k0s & k3s in daemonset mode (#1230)
* feat: implement kube-vip for k0s Signed-off-by: Devin Buhl <devin@buhl.casa> * feat: implement kube-vip for k0s Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: k3s to ds as well Signed-off-by: Devin Buhl <devin@buhl.casa> * fix: no j2j2 nonsense Signed-off-by: Devin Buhl <devin@buhl.casa> * upadte: readme and taskfile Signed-off-by: Devin Buhl <devin@buhl.casa> * update: renovate config Signed-off-by: Devin Buhl <devin@buhl.casa> --------- Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
1 parent
d9c7fd44ba
commit
9373065338
13 files changed
+243
-116
No files matched your search
@@ -7,15 +7,13 @@ k3s_install_hard_links: true
|
||||
k3s_become: true
|
||||
k3s_etcd_datastore: true
|
||||
k3s_use_unsupported_config: true
|
||||
k3s_registration_address: "{{ kube_api_addr }}"
|
||||
k3s_registration_address: "#{ bootstrap_kube_api_addr }#"
|
||||
# /var/lib/rancher/k3s/server/manifests
|
||||
k3s_server_manifests_templates:
|
||||
- custom-cilium-helmchart.yaml.j2
|
||||
- kube-vip-ds.yaml.j2
|
||||
# /var/lib/rancher/k3s/server/manifests
|
||||
k3s_server_manifests_urls:
|
||||
- url: https://raw.githubusercontent.com/kube-vip/website/main/content/manifests/rbac.yaml
|
||||
- url: https://kube-vip.io/manifests/rbac.yaml
|
||||
filename: kube-vip-rbac.yaml
|
||||
# /var/lib/rancher/k3s/agent/pod-manifests
|
||||
k3s_server_pod_manifests_templates:
|
||||
- kube-vip-static-pod.yaml.j2
|
||||
#% endif %#
|
||||
@@ -1,14 +0,0 @@
|
||||
#% if bootstrap_distribution in ['k3s', 'k0s'] %#
|
||||
---
|
||||
timezone: "#{ bootstrap_timezone }#"
|
||||
github_username: "#{ bootstrap_github_username }#"
|
||||
coredns_addr: "#{ bootstrap_service_cidr.split(',')[0] | nthhost(10) }#"
|
||||
kube_api_addr: "#{ bootstrap_kube_api_addr }#"
|
||||
cluster_cidr: "#{ bootstrap_cluster_cidr.split(',')[0] }#"
|
||||
service_cidr: "#{ bootstrap_service_cidr.split(',')[0] }#"
|
||||
node_cidr: "#{ bootstrap_node_cidr }#"
|
||||
#% if bootstrap_ipv6_enabled %#
|
||||
cluster_cidr_v6: "#{ bootstrap_cluster_cidr.split(',')[1] }#"
|
||||
service_cidr_v6: "#{ bootstrap_service_cidr.split(',')[1] }#"
|
||||
#% endif %#
|
||||
#% endif %#
|
||||
@@ -10,7 +10,7 @@ k3s_server:
|
||||
node-ip: "{{ ansible_host }}"
|
||||
#% endif %#
|
||||
tls-san:
|
||||
- "{{ kube_api_addr }}"
|
||||
- "#{ bootstrap_kube_api_addr }#"
|
||||
#% for item in bootstrap_kube_additional_tls_sans %#
|
||||
- "{{ item }}"
|
||||
#% endfor %#
|
||||
@@ -24,11 +24,11 @@ k3s_server:
|
||||
pause-image: registry.k8s.io/pause:3.9
|
||||
secrets-encryption: true
|
||||
#% if bootstrap_ipv6_enabled %#
|
||||
cluster-cidr: "{{ cluster_cidr }},{{ cluster_cidr_v6 }}"
|
||||
service-cidr: "{{ service_cidr }},{{ service_cidr_v6 }}"
|
||||
cluster-cidr: "#{ bootstrap_cluster_cidr.split(',')[0] }#,#{ bootstrap_cluster_cidr.split(',')[1] }#"
|
||||
service-cidr: "#{ bootstrap_service_cidr.split(',')[0] }#,#{ bootstrap_service_cidr.split(',')[1] }#"
|
||||
#% else %#
|
||||
cluster-cidr: "{{ cluster_cidr }}"
|
||||
service-cidr: "{{ service_cidr }}"
|
||||
cluster-cidr: "#{ bootstrap_cluster_cidr }#"
|
||||
service-cidr: "#{ bootstrap_service_cidr }#"
|
||||
#% endif %#
|
||||
etcd-expose-metrics: true # Required to monitor etcd with kube-prometheus-stack
|
||||
kube-controller-manager-arg:
|
||||
|
||||
Reference in new issue
Block a user