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
+1 -1
View File
@@ -11,7 +11,7 @@ variables:
image: buildtool/build-tools:${BUILDTOOLS_VERSION} image: buildtool/build-tools:${BUILDTOOLS_VERSION}
services: services:
- docker:19.03.12-dind - docker:dind
build: build:
stage: build stage: build
+28 -16
View File
@@ -3,21 +3,33 @@ kind: Ingress
metadata: metadata:
name: unbound-site-ingress name: unbound-site-ingress
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "alb"
ingress.kubernetes.io/enable-cors: "true" 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: spec:
rules: rules:
- host: "unbound.se" - host: "unbound.se"
http: http:
paths: paths:
- path: / - path: /*
backend: backend:
serviceName: unbound-site serviceName: ssl-redirect
servicePort: 80 servicePort: use-annotation
- host: "www.unbound.se" - path: /
http: backend:
paths: serviceName: unbound-site
- path: / servicePort: 80
backend: - host: "www.unbound.se"
serviceName: unbound-site http:
servicePort: 80 paths:
- path: /*
backend:
serviceName: ssl-redirect
servicePort: use-annotation
- path: /
backend:
serviceName: unbound-site
servicePort: 80