Commit fd26736a authored by Nane Kratzke's avatar Nane Kratzke
Browse files

rebuild

parent 5d742eff
......@@ -38,21 +38,17 @@ hiphop:
stage: deploy
image: $KUBECTL
script:
- NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
- VHOST=hiphop.$NS.$CLUSTER TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- VHOST=hiphop.$NS.$CLUSTER TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- VHOST=hiphop.$NS.$CLUSTER TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- VHOST=hiphop.$NS.$CLUSTER TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- VHOST=hiphop.$NS.$CLUSTER mo deploy/hiphop-ingress.yaml | kubectl apply -f -
- TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
shutdown:
stage: teardown
image: $KUBECTL
when: manual
script:
- NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
- VHOST=hiphop.$NS.$CLUSTER TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- VHOST=hiphop.$NS.$CLUSTER TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- VHOST=hiphop.$NS.$CLUSTER TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- VHOST=hiphop.$NS.$CLUSTER TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- VHOST=hiphop.$NS.$CLUSTER mo deploy/hiphop-ingress.yaml | kubectl delete -f -
- TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: hiphop-ingress
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-production"
spec:
rules:
- host: {{ VHOST }}
http:
paths:
- backend:
serviceName: hiphop-svc-1
servicePort: 80
tls:
- secretName: hiphop-ingress-cert
hosts:
- {{ VHOST }}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment