From ebd6dda96fc1b220f981b015bbe9796f86b8be3d Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Tue, 8 Apr 2025 11:14:48 +0200 Subject: [PATCH] feat(ingress): update ingress configuration for alb Changes the ingress class annotation to the new format and adds the ingressClassName field to specify the ALB ingress class. This improves compatibility with Kubernetes and aligns the configuration with the latest best practices. --- k8s/ingress-local.yaml | 2 +- k8s/ingress-prod.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/k8s/ingress-local.yaml b/k8s/ingress-local.yaml index 606ef1a..95da944 100644 --- a/k8s/ingress-local.yaml +++ b/k8s/ingress-local.yaml @@ -3,9 +3,9 @@ kind: Ingress metadata: name: dancefinder-app-ingress annotations: - kubernetes.io/ingress.class: "nginx" ingress.kubernetes.io/enable-cors: "true" spec: + ingressClassName: "nginx" rules: - host: "local-dancefinder.unbound.se" http: diff --git a/k8s/ingress-prod.yaml b/k8s/ingress-prod.yaml index 8892f92..9220031 100644 --- a/k8s/ingress-prod.yaml +++ b/k8s/ingress-prod.yaml @@ -3,13 +3,14 @@ kind: Ingress metadata: name: dancefinder-app-ingress annotations: - kubernetes.io/ingress.class: "alb" + alb.ingress.kubernetes.io/group.name: "default" alb.ingress.kubernetes.io/group.order: "101" alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/target-type: instance alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS": 443}]' alb.ingress.kubernetes.io/ssl-redirect: "443" spec: + ingressClassName: "alb" rules: - host: "dancefinder.unbound.se" http: