chore: change to ALB ingress
This commit is contained in:
+1
-1
@@ -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
@@ -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: /*
|
||||||
|
|||||||
Reference in New Issue
Block a user