From f204d85e821c65164f7f10d605b029e512093bff Mon Sep 17 00:00:00 2001 From: Kai Morita-McVey Date: Mon, 7 Sep 2026 17:21:17 -0700 Subject: [PATCH] Migrated to Traefik ingress --- ...ress.helm.yaml => traefik-ingress.helm.yaml} | 17 +++++++++++------ src/cluster_setup/mod.rs | 10 +++++----- src/deploy/mod.rs | 2 +- 3 files changed, 17 insertions(+), 12 deletions(-) rename src/asset_files/setup_manifests/{haproxy-ingress.helm.yaml => traefik-ingress.helm.yaml} (58%) diff --git a/src/asset_files/setup_manifests/haproxy-ingress.helm.yaml b/src/asset_files/setup_manifests/traefik-ingress.helm.yaml similarity index 58% rename from src/asset_files/setup_manifests/haproxy-ingress.helm.yaml rename to src/asset_files/setup_manifests/traefik-ingress.helm.yaml index e0ae510..f55bd90 100644 --- a/src/asset_files/setup_manifests/haproxy-ingress.helm.yaml +++ b/src/asset_files/setup_manifests/traefik-ingress.helm.yaml @@ -1,9 +1,14 @@ -controller: - ingressClass: beavercds - - service: - type: LoadBalancer - annotations: +providers: + kubernetesIngress: + enabled: true + kubernetesGateway: + enabled: false +api: + dashboard: false +ingressClass: + name: "beavercds" +service: + annotations: # AWS-specific annotations service.beta.kubernetes.io/aws-load-balancer-scheme: "internet-facing" service.beta.kubernetes.io/aws-load-balancer-backend-protocol: tcp diff --git a/src/cluster_setup/mod.rs b/src/cluster_setup/mod.rs index b481667..6be4e02 100644 --- a/src/cluster_setup/mod.rs +++ b/src/cluster_setup/mod.rs @@ -43,22 +43,22 @@ enum HelmSource { } pub async fn install_ingress(profile: &config::ProfileConfig) -> Result<()> { - info!("deploying haproxy ingress chart..."); + info!("deploying traefik ingress chart..."); - const VALUES: &str = include_str!("../asset_files/setup_manifests/haproxy-ingress.helm.yaml"); + const VALUES: &str = include_str!("../asset_files/setup_manifests/traefik-ingress.helm.yaml"); trace!("values:\n{}", VALUES); install_helm_chart( profile, HelmSource::Oci { - chart: "oci://ghcr.io/haproxytech/helm-charts/kubernetes-ingress", + chart: "oci://ghcr.io/traefik/helm/traefik", }, None, - "haproxy", + "traefik", INGRESS_NAMESPACE, VALUES, ) - .context("failed to install haproxy ingress helm chart") + .context("failed to install traefik ingress helm chart") } pub async fn install_certmanager(profile: &config::ProfileConfig) -> Result<()> { diff --git a/src/deploy/mod.rs b/src/deploy/mod.rs index 13706a9..9c90faf 100644 --- a/src/deploy/mod.rs +++ b/src/deploy/mod.rs @@ -36,7 +36,7 @@ pub async fn check_setup(profile: &ProfileConfig) -> Result<()> { .unwrap_or(0) }; } - let expected_charts = ["haproxy", "cert-manager", "external-dns"]; + let expected_charts = ["traefik", "cert-manager", "external-dns"]; let latest_releases = expected_charts .iter() .map(|chart| {