stages: - deploy - inject - evolution - teardown variables: KUBECTL: "transit/kubectl-plus:v1.19.4" CLUSTER: "rig.th-luebeck.dev" yelb: stage: deploy image: $KUBECTL script: - kubectl apply -f deploy/yelb.yaml yelb-evolution: stage: evolution image: $KUBECTL when: manual script: - kubectl apply -f deploy/yelb-evolution.yaml - kubectl apply -f deploy/yelb-istio-config.yaml istio: stage: inject image: $KUBECTL when: manual script: - NS=$(kubectl config view --minify --output 'jsonpath={..namespace}') - kubectl label ns $NS istio-injection=enabled --overwrite - kubectl delete -f deploy/yelb.yaml - sleep 5 - kubectl apply -f deploy/yelb.yaml shutdown: stage: teardown image: $KUBECTL when: manual script: - NS=$(kubectl config view --minify --output 'jsonpath={..namespace}') - kubectl label ns $NS istio-injection=disabled --overwrite - kubectl delete -f deploy/