enable static traefik load balancer IP

This commit is contained in:
Pim Kunis 2024-03-27 23:11:34 +01:00
parent 9c14a774d4
commit 6fd25419be

View file

@ -32,11 +32,29 @@
version = "v1beta1";
kind = "L2Advertisement";
};
helmChartConfig = {
attrName = "helmChartConfigs";
group = "helm.cattle.io";
version = "v1";
kind = "HelmChartConfig";
};
};
resources = {
ipAddressPools.main.spec.addresses = [ "192.168.30.128-192.168.30.200" ];
l2Advertisements.main.metadata = { };
# Override Traefik's service with a static load balancer IP.
helmChartConfigs.traefik = {
metadata.namespace = "kube-system";
spec.valuesContent = ''
service:
spec:
loadBalancerIP: "192.168.30.128"
'';
};
};
helm.releases.metallb = {