feat: re-introduce flux vars for cluster network settings

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2023-07-17 20:52:12 -04:00
1 parent 34b87d6a52
commit 4dd5f9d5a8
8 files changed
+34 -26

No files matched your search

@@ -19,4 +19,4 @@ metadata:
name: pool
spec:
cidrs:
- cidr: "{{ bootstrap_node_cidr }}"
- cidr: "${NODE_CIDR}"
@@ -76,27 +76,26 @@ spec:
- *host
ipam:
mode: kubernetes
ipv4NativeRoutingCIDR: "{{ bootstrap_cluster_cidr.split(',')[0] }}"
ipv4NativeRoutingCIDR: "${CLUSTER_CIDR}"
{% if bootstrap_ipv6_enabled | default(false) %}
ipv6NativeRoutingCIDR: "{{ bootstrap_cluster_cidr.split(',')[1] }}"
ipv6NativeRoutingCIDR: "${CLUSTER_CIDR_V6}"
ipv6:
enabled: true
{% endif %}
k8sServiceHost: "{{ bootstrap_kube_vip_addr }}"
k8sServiceHost: "${KUBE_VIP_ADDR}"
k8sServicePort: 6443
kubeProxyReplacement: strict
kubeProxyReplacementHealthzBindAddr: 0.0.0.0:10256
{% if bootstrap_ipv6_enabled | default(false) %}
l2announcements:
{% if bootstrap_ipv6_enabled | default(false) %}
enabled: false
{% else %}
# https://github.com/cilium/cilium/issues/26586
l2announcements:
{% else %}
enabled: true
# https://github.com/cilium/cilium/issues/26586
leaseDuration: 120s
leaseRenewDeadline: 60s
leaseRetryPeriod: 1s
{% endif %}
{% endif %}
loadBalancer:
algorithm: maglev
mode: dsr
@@ -32,7 +32,7 @@ spec:
k8sAppLabelOverride: kube-dns
service:
name: kube-dns
clusterIP: "{{ bootstrap_coredns_addr }}"
clusterIP: "${COREDNS_ADDR}"
serviceAccount:
create: true
deployment: