-
Notifications
You must be signed in to change notification settings - Fork 114
/
clouddeploy.yaml
43 lines (40 loc) · 966 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
43
# 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: test
- targetId: staging
profiles:
- staging
- targetId: prod
profiles:
- prod
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: test
description: test cluster
gke:
cluster: projects/project-id-here/locations/us-central1/clusters/testcluster
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: staging
description: staging cluster
gke:
cluster: projects/project-id-here/locations/us-central1/clusters/stagingcluster
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: prod
description: prod cluster
requireApproval: true
gke:
cluster: projects/project-id-here/locations/us-central1/clusters/prodcluster