chore: change to ALB ingress

This commit is contained in:
2021-04-17 23:04:02 +02:00
parent adfc842896
commit 6b77b89238
2 changed files with 13 additions and 6 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ image: buildtool/build-tools:${BUILDTOOLS_VERSION}
build: build:
stage: build stage: build
services: services:
- docker:19.03-dind - docker:dind
script: script:
- build - build
- push - push
+12 -5
View File
@@ -72,7 +72,7 @@ spec:
targetPort: 80 targetPort: 80
selector: selector:
app: nginx-s3-upload app: nginx-s3-upload
type: ClusterIP type: NodePort
--- ---
@@ -81,15 +81,22 @@ kind: Ingress
metadata: metadata:
name: nginx-s3-upload name: nginx-s3-upload
annotations: annotations:
kubernetes.io/ingress.class: "nginx" kubernetes.io/ingress.class: "alb"
nginx.ingress.kubernetes.io/enable-cors: "true" alb.ingress.kubernetes.io/group.name: "unbound"
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" 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: 'upload.unbound.se' - host: 'upload.unbound.se'
http: http:
paths: paths:
- path: /*
backend:
serviceName: ssl-redirect
servicePort: use-annotation
- backend: - backend:
serviceName: nginx-s3-upload serviceName: nginx-s3-upload
servicePort: 80 servicePort: 80
path: / path: /*