-
Notifications
You must be signed in to change notification settings - Fork 3
/
second-deployment.yaml
47 lines (47 loc) · 1.45 KB
/
second-deployment.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
version: v1
kind: kubernetes
application: potato-facts
targets:
staging:
account: my-cdaas-cluster
namespace: potato-facts-staging
strategy: rolling
prod:
account: my-cdaas-cluster
namespace: potato-facts-prod
strategy: trafficSplit
constraints:
dependsOn: ["staging"]
beforeDeployment:
- pause:
untilApproved: true
manifests:
# This tutorial uses URLs to ensure a simple first-time deployment experience.
# You can also use relative file paths to define manifest locations.
- path: https://raw.githubusercontent.com/armory-io/cdaas-examples/main/hello-armory/manifests/potato-facts-v2.yaml
- path: https://raw.githubusercontent.com/armory-io/cdaas-examples/main/hello-armory/manifests/potato-facts-service.yaml
- path: https://raw.githubusercontent.com/armory-io/cdaas-examples/main/hello-armory/manifests/staging-namespace.yaml
targets: ["staging"]
- path: https://raw.githubusercontent.com/armory-io/cdaas-examples/main/hello-armory/manifests/prod-namespace.yaml
targets: ["prod"]
strategies:
rolling:
canary:
steps:
- setWeight:
weight: 100
trafficSplit:
canary:
steps:
- setWeight:
weight: 25
- exposeServices:
services:
- potato-facts
ttl:
duration: 30
unit: minutes
- pause:
untilApproved: true
- setWeight:
weight: 100