-
Notifications
You must be signed in to change notification settings - Fork 1
/
shippable.resources.yml
149 lines (129 loc) · 3.84 KB
/
shippable.resources.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
resources:
# resources for the box demo pipelines from CI thru TEST environment
################################
# add infrastructure resources
# add env - GKE cluster TEST
- name: shipdemo-cluster-gke
type: cluster
integration: ttrahan-gke # replace with your GKE integration name
pointer:
sourceName : "shippable-demo" # replace with your GKE cluster name
region: us-east1-b
namespace: "shippable-gke" # replace with your Google Cloud project name
flags:
- gke-loadbalancer
################################
# Docker Image
- name: shipdemo-img-gke
type: image
integration: ttrahan-gcr # replace with your GCR integration name
pointer:
sourceName: gcr.io/shippable-gke/node-gcr-deploy-gke-loadbalancer # replace namespace name with your Google Cloud project name
isPull: false
seed:
versionName: master.1
flags:
- gke-loadbalancer
################################
# TEST resources
# Docker Image Options
- name: shipdemo-img-options-gke-test
type: dockerOptions
version:
memory: 64
cpuShares: 128
portMappings:
- 80:80
publishAllPorts : true
labels: # these labels will be used by the loadBalancer resource
app: shipdemo-node-gcr-deploy-gke-loadbalancer
env: test
flags:
- gke-loadbalancer
# env vars for Test
- name: shipdemo-params-gke-test
type: params
version:
params:
ENVIRONMENT: "TEST"
PORT: 80
flags:
- gke-loadbalancer
# GKE service/load balancer for TEST
- name: shipdemo-service-test
type: loadBalancer
integration: ttrahan-gke # replace with your GKE integration name
pointer:
sourceName: "shipdemo-service-test"
method: LoadBalancer
clusterName: shippable-demo # replace with your GKE cluster name
region: "us-east1-b" # replace with your GKE cluster region
namespace: shippable-gke # replace with your Google Cloud project name
version:
ports:
- name: public
protocol: TCP
port: 80
selector: # these must match labels set on your image (see dockerOptions)
app: shipdemo-node-gcr-deploy-gke-loadbalancer
env: test
flags:
- gke-loadbalancer
################################
# set service version seed
- name: shipdemo-version-gke
type: version
seed:
versionName: "1.0.0"
flags:
- gke-loadbalancer
################################
# PROD resources
# Docker Image Options
- name: shipdemo-img-options-gke-prod
type: dockerOptions
version:
memory: 64
cpuShares: 128
labels: # these labels will be used by the loadBalancer resource
app: shipdemo-node-gcr-deploy-gke-loadbalancer
env: prod
flags:
- gke-loadbalancer
# env vars for Prod
- name: shipdemo-params-gke-prod
type: params
version:
params:
ENVIRONMENT: "PROD"
PORT: 80
flags:
- gke-loadbalancer
# GKE service/load balancer for PROD
- name: shipdemo-service-prod
type: loadBalancer
integration: ttrahan-gke # replace with your GKE integration name
pointer:
sourceName: "shipdemo-service-prod"
method: LoadBalancer
clusterName: shippable-demo # replace with your GKE cluster name
region: "us-east1-b" # replace with your GKE cluster region
namespace: shippable-gke # replace with your Google Cloud project name
version:
ports:
- name: public
protocol: TCP
port: 80
selector: # these must match labels set on your image (see dockerOptions)
app: shipdemo-node-gcr-deploy-gke-loadbalancer
env: prod
flags:
- gke-loadbalancer
# PROD replicas
- name: shipdemo-replicas-gke-prod
type: replicas
version:
count: 2
flags:
- gke-loadbalancer
# ################################