File tree Expand file tree Collapse file tree 2 files changed +99
-0
lines changed
Expand file tree Collapse file tree 2 files changed +99
-0
lines changed Original file line number Diff line number Diff line change 1+ apiVersion: apps/v1
2+ kind: ReplicaSet
3+ metadata:
4+ creationTimestamp: null
5+ labels:
6+ app: wy
7+ name: wy
8+ spec:
9+ replicas: 0
10+ selector:
11+ matchLabels:
12+ app: wy
13+ template:
14+ metadata:
15+ creationTimestamp: null
16+ labels:
17+ app: wy
18+ spec:
19+ containers:
20+ - image: mumoshu/wy:latest
21+ name: wy
22+ ports:
23+ - containerPort: 8080
24+ resources: {}
25+ args:
26+ - repeat
27+ - get
28+ - -forever
29+ - -interval=5s
30+ - -url=http://localhost:8080
31+ - -argocd-cluster-secret=cdk1
32+ - -service=wy-serve
33+ - -remote-port=8080
34+ - -local-port=8080
35+ envFrom:
36+ - secretRef:
37+ name: wy
38+ optional: true
39+ ---
40+ apiVersion: okra.mumo.co/v1alpha1
41+ kind: Cell
42+ metadata:
43+ name: web
44+ spec:
45+ ingress:
46+ type: AWSApplicationLoadBalancer
47+ awsApplicationLoadBalancer:
48+ listener:
49+ rule:
50+ forward: {}
51+ hosts:
52+ - example.com
53+ priority: 10
54+ listenerARN: ${AWS_ALB_LISTENER_ARN}
55+ targetGroupSelector:
56+ matchLabels:
57+ role: web
58+ versionLabels:
59+ - okra.mumo.co/version
60+ version: "${CELL_VERSION}"
61+ # replicas: N
62+ updateStrategy:
63+ type: Canary
64+ # Canary uses the set of target groups whose labels contains
65+ # `selector.MatchLabels` and the size of the set is equal or greater than N.
66+ # When there are two or more such sets exist, the one that has the largest version is used.
67+ canary:
68+ # See https://argoproj.github.io/argo-rollouts/features/analysis/#background-analysis
69+ steps:
70+ - setWeight: 10
71+ - pause: {duration: 1m}
72+ - experiment:
73+ duration: 5m
74+ templates:
75+ - name: wy
76+ # references the wy replicaset defined above
77+ specRef: wy
78+ # This should default to 1 as defined by Argo Rollouts but
79+ # the author observed that it doesn't work in practice.
80+ #
81+ replicas: 1
82+ analyses:
83+ - name: success-rate-dd
84+ templateName: success-rate-dd
85+ args:
86+ - name: service-name
87+ value: wy-serve
88+ - setWeight: 20
89+ - analysis:
90+ templates:
91+ - templateName: success-rate-dd
92+ args:
93+ - name: service-name
94+ value: wy-serve
Original file line number Diff line number Diff line change 1+ apiVersion : okra.mumo.co/v1alpha1
2+ kind : Pause
3+ metadata :
4+ name : pause1
5+ spec :
You can’t perform that action at this time.
0 commit comments