31 lines
790 B
Nix
31 lines
790 B
Nix
{ myLib, ... }: {
|
|
kubernetes.resources.helmChartConfigs = {
|
|
traefik = {
|
|
metadata.namespace = "kube-system";
|
|
|
|
# Override Traefik's service with a static load balancer IP.
|
|
# Create endpoint for HTTPS on port444.
|
|
# Allow external name services for esrom.
|
|
spec.valuesContent = ''
|
|
service:
|
|
spec:
|
|
loadBalancerIP: "${myLib.globals.traefikIPv4}"
|
|
ports:
|
|
localsecure:
|
|
port: 8444
|
|
expose: true
|
|
exposedPort: 444
|
|
protocol: TCP
|
|
tls:
|
|
enabled: true
|
|
options: ""
|
|
certResolver: ""
|
|
domains: []
|
|
providers:
|
|
kubernetesIngress:
|
|
allowExternalNameServices: true
|
|
'';
|
|
};
|
|
};
|
|
|
|
}
|