Update traefik template

Enable multiple loadBalancerIPs for metallb.
Apply the traefik template.
This commit is contained in:
erik 2022-07-21 16:58:49 +02:00
parent 3d385fa8ac
commit 9fb30341de
2 changed files with 5 additions and 2 deletions

View file

@ -29,7 +29,7 @@ private val k3sInstallScript = File( "/usr/local/bin/k3s-install.sh")
private val k3sConfigFile = File( "/etc/rancher/k3s/config.yaml")
private val k3sKubeConfig = File("/etc/rancher/k3s/k3s.yaml")
private val k3sTraefikWorkaround = File(k3sManualManifestsDir, "traefik.template.yaml")
private val k3sTraefikWorkaround = File(k3sManualManifestsDir, "traefik.yaml")
private val certManagerDeployment = File(k3sManualManifestsDir, "cert-manager.yaml")
private val certManagerIssuer = File(k3sManualManifestsDir, "le-issuer.yaml")

View file

@ -46,7 +46,10 @@ spec:
effect: "NoSchedule"
service:
ipFamilyPolicy: "PreferDualStack"
loadBalancerIP: ${node_ipv4}
metadata:
annotations:
metallb.universe.tf/loadBalancerIPs: "${node_ipv4}, ${node_ipv6}"
spec:
type: LoadBalancer
externalTrafficPolicy: Local