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.
This commit is contained in:
2025-04-08 11:14:48 +02:00
parent e971353d9c
commit ebd6dda96f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -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:
+2 -1
View File
@@ -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: