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

Aktualisieren deploy/yelb-evolution.yaml, .gitlab-ci.yml, mesh-rules.yaml, deploy/yelb.yaml Dateien

parent 8f0973e2
stages:
- deploy
- inject
- evolution
- teardown
variables:
......@@ -14,6 +15,15 @@ yelb:
- NS=$(kubectl config view --minify --output 'jsonpath={..namespace}')
- VHOST=yelb.$NS.$CLUSTER mo deploy/yelb.yaml | kubectl apply -f -
yelb-evolution:
stage: evolution
image: $KUBECTL
when: manual
script:
- mo deploy/yelb-evolution.yaml | kubectl apply -f -
- mo deploy/mesh-rules.yaml | kubectl apply -f -
istio:
stage: inject
image: $KUBECTL
......
apiVersion: apps/v1
kind: Deployment
metadata:
name: yelb-appserver-v2
spec:
replicas: 1
selector:
matchLabels:
app: yelb-appserver
version: v2
tier: middletier
template:
metadata:
labels:
app: yelb-appserver
version: v2
tier: middletier
spec:
containers:
- name: yelb-appserver
image: mreferre/yelb-appserver:0.5
ports:
- containerPort: 4567
......@@ -156,11 +156,13 @@ spec:
selector:
matchLabels:
app: yelb-appserver
version: v1
tier: middletier
template:
metadata:
labels:
app: yelb-appserver
version: v1
tier: middletier
spec:
containers:
......
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
name: yelb-appserver-rule
spec:
host: yelb-appserver
subsets:
- name: v1
labels:
version: v1
- name: v2
labels:
version: v2
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: yelb-appserver-vsvc
spec:
hosts:
- yelb-appserver
http:
- route:
- weight: 75
destination:
host: yelb-appserver
subset: v1
- route:
- weight: 25
destination:
host: yelb-appserver
subset: v2
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