Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Schwieger, Jana
lab-observability
Commits
ba728974
Commit
ba728974
authored
Dec 21, 2020
by
Nane Kratzke
Browse files
interactive istio injection
parent
6fc1cb20
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
ba728974
stages
:
-
deploy
-
inject
-
teardown
variables
:
...
...
@@ -7,9 +8,31 @@ variables:
CLUSTER
:
"
rig.th-luebeck.dev"
yelb
:
stage
:
deploy
image
:
$KUBECTL
script
:
-
NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
-
VHOST=yelb.$NS.$CLUSTER VHOST2=yelb.$NS.$CLUSTER mo deploy/yelb.yaml
-
VHOST=yelb.$NS.$CLUSTER VHOST2=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl apply -f -
stage
:
deploy
image
:
$KUBECTL
script
:
-
VHOST=yelb.$NS.$CLUSTER
-
NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
-
mo deploy/yelb.yaml | kubectl apply -f -
istio
:
stage
:
inject
image
:
$KUBECTL
when
:
manual
script
:
-
VHOST=yelb.$NS.$CLUSTER
-
NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
-
kubectl label ns $NS istio-inject=enabled --overwrite
-
mo deploy/yelb.yaml | kubectl delete -f -
-
sleep
5
-
mo deploy/yelb.yaml | kubectl apply -f -
shutdown
:
stage
:
teardown
image
:
$KUBECTL
when
:
manual
script
:
-
VHOST=yelb.$NS.$CLUSTER
-
NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
-
kubectl label ns $NS istio-inject=disabled --overwrite
-
mo deploy/yelb.yaml | kubectl delete -f -
deploy/yelb.yaml
View file @
ba728974
...
...
@@ -78,8 +78,7 @@ spec:
number
:
80
tls
:
-
secretName
:
yelb-ingress-cert
hosts
:
-
{{
VHOST2
}}
hosts
:
[
"
{{
VHOST
}}"
]
---
apiVersion
:
apps/v1
kind
:
Deployment
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment