-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclouddeploy.yaml
37 lines (35 loc) · 919 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
apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: demo-backend-api
description: demo backend api pipeline
serialPipeline:
stages:
- targetId: demo-backend-api-dev
profiles: [dev]
- targetId: demo-backend-api-prod
profiles: [prod]
strategy:
canary:
runtimeConfig:
cloudRun:
automaticTrafficControl: true
canaryDeployment:
percentages: [25, 50, 75]
verify: false
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: demo-backend-api-dev
description: Cloud Run development service
run:
location: projects/hatena2024/locations/asia-northeast1 # Change project-id
---
apiVersion: deploy.cloud.google.com/v1
kind: Target
metadata:
name: demo-backend-api-prod
description: Cloud Run production service
run:
location: projects/hatena2024/locations/asia-northeast1 # Change project-id