Merge branch 'alb-ingress' into 'master'
chore: change to ALB ingress See merge request unboundsoftware/nginx-s3-upload!3
This commit was merged in pull request #3.
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ image: buildtool/build-tools:${BUILDTOOLS_VERSION}
|
||||
build:
|
||||
stage: build
|
||||
services:
|
||||
- docker:19.03-dind
|
||||
- docker:dind
|
||||
script:
|
||||
- build
|
||||
- push
|
||||
|
||||
+12
-5
@@ -72,7 +72,7 @@ spec:
|
||||
targetPort: 80
|
||||
selector:
|
||||
app: nginx-s3-upload
|
||||
type: ClusterIP
|
||||
type: NodePort
|
||||
|
||||
---
|
||||
|
||||
@@ -81,15 +81,22 @@ kind: Ingress
|
||||
metadata:
|
||||
name: nginx-s3-upload
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: "nginx"
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/force-ssl-redirect: "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: 'upload.unbound.se'
|
||||
http:
|
||||
paths:
|
||||
- path: /*
|
||||
backend:
|
||||
serviceName: ssl-redirect
|
||||
servicePort: use-annotation
|
||||
- backend:
|
||||
serviceName: nginx-s3-upload
|
||||
servicePort: 80
|
||||
path: /
|
||||
path: /*
|
||||
|
||||
Reference in New Issue
Block a user