-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathclouddeploy.yaml
42 lines (38 loc) · 1009 Bytes
/
clouddeploy.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
apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: ci-cd-test
description: main application pipeline
serialPipeline:
stages:
- targetId: test
profiles: []
- targetId: staging
profiles: []
- targetId: prod
profiles: []
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: test
description: development cluster
gke:
cluster: projects/<<PROJECT_ID>>/locations/us-central1/clusters/test #Update with your product ID instead of <<PROJECT_ID>>
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: staging
description: staging cluster
gke:
cluster: projects/<<PROJECT_ID>>/locations/us-central1/clusters/staging #Update with your product ID instead of <<PROJECT_ID>>
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod
description: production cluster
requireApproval: true
gke:
cluster: projects/<<PROJECT_ID>>/locations/us-central1/clusters/prod #Update with your product ID instead of <<PROJECT_ID>>