feat(cilium): loadbalancer mode default to dsr and allow configurability

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-10-17 08:44:35 -04:00
1 parent 7fb926cfc5
commit 50b6f98dd7
5 files changed
+23 -6

No files matched your search

@@ -43,7 +43,7 @@ l2announcements:
#% endif %#
loadBalancer:
algorithm: maglev
mode: snat
mode: "#{ bootstrap_loadbalancer_mode|default('dsr', true) }#"
localRedirectPolicy: true
operator:
replicas: 1
@@ -30,7 +30,11 @@ spec:
annotations:
external-dns.alpha.kubernetes.io/hostname: "external.${SECRET_DOMAIN}"
lbipam.cilium.io/ips: "#{ bootstrap_cloudflare.tunnel.ingress_vip }#"
#% if bootstrap_loadbalancer_mode in ['dsr'] %#
externalTrafficPolicy: Cluster
#% else %#
externalTrafficPolicy: Local
#% endif %#
ingressClassResource:
name: external
default: false
@@ -27,7 +27,11 @@ spec:
service:
annotations:
lbipam.cilium.io/ips: "#{ bootstrap_cloudflare.ingress_vip }#"
#% if bootstrap_loadbalancer_mode in ['dsr'] %#
externalTrafficPolicy: Cluster
#% else %#
externalTrafficPolicy: Local
#% endif %#
ingressClassResource:
name: internal
default: true
@@ -29,5 +29,9 @@ spec:
port: 53
annotations:
lbipam.cilium.io/ips: "#{ bootstrap_cloudflare.gateway_vip }#"
#% if bootstrap_loadbalancer_mode in ['dsr'] %#
externalTrafficPolicy: Cluster
#% else %#
externalTrafficPolicy: Local
#% endif %#
watchedResources: ["Ingress", "Service"]