chore: change to ALB ingress

This commit is contained in:
2021-04-17 22:10:34 +02:00
parent 7d6c82246c
commit 344d2d8167
2 changed files with 29 additions and 17 deletions
+28 -16
View File
@@ -3,21 +3,33 @@ kind: Ingress
metadata:
name: unbound-site-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
ingress.kubernetes.io/enable-cors: "true"
kubernetes.io/ingress.class: "alb"
alb.ingress.kubernetes.io/group.name: "unbound"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80},{"HTTPS": 443}]'
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: instance
alb.ingress.kubernetes.io/actions.ssl-redirect: '{"Type": "redirect", "RedirectConfig": { "Protocol": "HTTPS", "Port": "443", "StatusCode": "HTTP_301"}}'
spec:
rules:
- host: "unbound.se"
http:
paths:
- path: /
backend:
serviceName: unbound-site
servicePort: 80
- host: "www.unbound.se"
http:
paths:
- path: /
backend:
serviceName: unbound-site
servicePort: 80
- host: "unbound.se"
http:
paths:
- path: /*
backend:
serviceName: ssl-redirect
servicePort: use-annotation
- path: /
backend:
serviceName: unbound-site
servicePort: 80
- host: "www.unbound.se"
http:
paths:
- path: /*
backend:
serviceName: ssl-redirect
servicePort: use-annotation
- path: /
backend:
serviceName: unbound-site
servicePort: 80