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

VHOST

parent 6e266de7
...@@ -12,9 +12,6 @@ yelb: ...@@ -12,9 +12,6 @@ yelb:
image: $KUBECTL image: $KUBECTL
script: script:
- NS=$(kubectl config view --minify --output 'jsonpath={..namespace}') - NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
- VHOST=yelb.$NS.$CLUSTER
- echo $VHOST
- mo deploy/yelb.yaml
- VHOST=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl apply -f - - VHOST=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl apply -f -
istio: istio:
...@@ -23,11 +20,10 @@ istio: ...@@ -23,11 +20,10 @@ istio:
when: manual when: manual
script: script:
- NS=$(kubectl config view --minify --output 'jsonpath={..namespace}') - NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
- VHOST=yelb.$NS.$CLUSTER
- kubectl label ns $NS istio-inject=enabled --overwrite - kubectl label ns $NS istio-inject=enabled --overwrite
- mo deploy/yelb.yaml | kubectl delete -f - - VHOST=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl delete -f -
- sleep 5 - sleep 5
- mo deploy/yelb.yaml | kubectl apply -f - - VHOST=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl apply -f -
shutdown: shutdown:
stage: teardown stage: teardown
...@@ -35,6 +31,5 @@ shutdown: ...@@ -35,6 +31,5 @@ shutdown:
when: manual when: manual
script: script:
- NS=$(kubectl config view --minify --output 'jsonpath={..namespace}') - NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
- VHOST=yelb.$NS.$CLUSTER
- kubectl label ns $NS istio-inject=disabled --overwrite - kubectl label ns $NS istio-inject=disabled --overwrite
- mo deploy/yelb.yaml | kubectl delete -f - - VHOST=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl delete -f -
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