-
Notifications
You must be signed in to change notification settings - Fork 2
/
clouddeploy-2.yaml
53 lines (53 loc) · 1.25 KB
/
clouddeploy-2.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
# replace "project-id-here" in the three targets below with your actual project(s)
apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: pop-stats-pipeline
description: pop-stats application delivery pipeline
serialPipeline:
stages:
- targetId: prod
profiles:
- prod
strategy:
canary:
runtimeConfig:
kubernetes:
serviceNetworking:
service: "pop-stats"
deployment: "pop-stats"
canaryDeployment:
percentages: [5]
verify: true
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod
description: prod multi-target
multiTarget:
targetIds: [prod1, prod2, prod3]
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod1
description: prod cluster 1
gke:
cluster: projects/project-id-here/locations/us-central1/clusters/prodcluster1
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod2
description: prod cluster 2
gke:
cluster: projects/project-id-here/locations/europe-west1/clusters/prodcluster2
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod3
description: prod cluster 3
gke:
cluster: projects/project-id-here/locations/asia-northeast1/clusters/prodcluster3