manual approval to prod

This commit is contained in:
ducoterra
2020-04-25 19:04:21 -04:00
parent c3666783e4
commit c09558c0ff
4 changed files with 50 additions and 9 deletions

View File

@@ -3,4 +3,4 @@ kind: ConfigMap
metadata:
name: $DEPLOY
data:
ALLOWED_HOSTS: localhost,test.ducoterra.net
ALLOWED_HOSTS: localhost,$DEPLOY.ducoterra.net

View File

@@ -7,10 +7,10 @@ metadata:
spec:
tls:
- hosts:
- test.ducoterra.net
- $DEPLOY.ducoterra.net
secretName: letsencrypt
rules:
- host: test.ducoterra.net
- host: $DEPLOY.ducoterra.net
http:
paths:
- backend:
@@ -29,7 +29,7 @@ spec:
tls:
secretName: letsencrypt
routes:
- match: Host(`test.ducoterra.net`)
- match: Host(`$DEPLOY.ducoterra.net`)
kind: Rule
services:
- name: $DEPLOY
@@ -45,7 +45,7 @@ spec:
entryPoints:
- web
routes:
- match: Host(`test.ducoterra.net`)
- match: Host(`$DEPLOY.ducoterra.net`)
kind: Rule
services:
- name: $DEPLOY

18
k8s/test/ingress.yaml Normal file
View File

@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
annotations:
ingress.kubernetes.io/ssl-redirect: "true"
name: $DEPLOY
spec:
tls:
- hosts:
- $DEPLOY.ducoterra.net
secretName: letsencrypt
rules:
- host: $DEPLOY.ducoterra.net
http:
paths:
- backend:
serviceName: $DEPLOY
servicePort: 8000