-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdeployment-dev.yaml
114 lines (114 loc) · 2.75 KB
/
deployment-dev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: msaez-dev
spec:
replicas: 5
template:
metadata:
labels:
app: msaez-dev
spec:
containers:
- name: msaez-dev
image: gcr.io/$PROJECT_ID/eventstorming-ui-dev:$COMMIT_SHA
ports:
- containerPort: 8080
strategy:
canary:
trafficRouting:
istio:
virtualService:
name: msaez-dev-vsvc # required
routes:
- primary # required
destinationRule:
name: msaez-dev-destrule # required
canarySubsetName: canary # required
stableSubsetName: stable # required
steps:
- setWeight: 5
- pause:
duration: 10s
- setWeight: 20
- pause:
duration: 10s
- setWeight: 40
- pause:
duration: 10s
- setWeight: 60
- pause:
duration: 10s
- setWeight: 80
- pause:
duration: 10s
revisionHistoryLimit: 2
selector:
matchLabels:
app: msaez-dev
#---
#apiVersion: "networking.istio.io/v1alpha3"
#kind: "Gateway"
#metadata:
# name: "msaez-dev-gateway"
#spec:
# selector:
# istio: "ingressgateway"
# servers:
# -
# port:
# number: 80
# name: "http"
# protocol: "HTTP"
# hosts:
# - "*"
#---
# apiVersion: "v1"
# kind: "Service"
# metadata:
# name: msaez-dev
# labels:
# app: msaez-dev
# spec:
# ports:
# -
# port: 80
# targetPort: 8080
# selector:
# app: msaez-dev
# type: "LoadBalancer"
#---
#apiVersion: networking.istio.io/v1alpha3
#kind: VirtualService
#metadata:
# name: msaez-dev-vsvc
#spec:
# gateways:
# - msaez-dev-gateway
# hosts:
# - "*"
# http:
# - name: primary # referenced in canary.trafficRouting.istio.virtualService.routes
# route:
# - destination:
# host: msaez-dev
# subset: stable # referenced in canary.trafficRouting.istio.destinationRule.stableSubsetName
# weight: 100
# - destination:
# host: msaez-dev
# subset: canary # referenced in canary.trafficRouting.istio.destinationRule.canarySubsetName
# weight: 0
#---
#apiVersion: networking.istio.io/v1alpha3
#kind: DestinationRule
#metadata:
# name: msaez-dev-destrule
#spec:
# host: msaez-dev
# subsets:
# - name: canary # referenced in canary.trafficRouting.istio.destinationRule.canarySubsetName
# labels: # labels will be injected with canary rollouts-pod-template-hash value
# app: msaez-dev
# - name: stable # referenced in canary.trafficRouting.istio.destinationRule.stableSubsetName
# labels: # labels will be injected with canary rollouts-pod-template-hash value
# app: msaez-dev