-
Notifications
You must be signed in to change notification settings - Fork 248
/
skaffold.yaml
304 lines (280 loc) · 6.24 KB
/
skaffold.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
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# For creating your own custom skaffold profiles we recommend making a copy of this
# file to skaffold-dev.yaml (which is in .gitignore).
# You can "mix and match" diferent services together by creating skaffold profiles
# and by creating a new kustomize profile in kustomize/overlay/
# The default below for skaffold dev is to deploy all services in one shot:
# Note: Upgrade to skaffold/v2alpha3 for skaffold 1.4
apiVersion: skaffold/v2beta26
kind: Config
## Common YAML anchors
## The yaml anchors are used to make it easier to compose skaffold profiles.
## You should not need to edit this section
.YamlAnchors:
artifactDefinitions:
- &AM
image: am
context: docker/am
docker:
pullParent: true
buildArgs:
CONFIG_PROFILE: '{{ or .CONFIG_PROFILE "cdk"}}'
- &AMSTER
image: amster
context: docker/amster
docker:
pullParent: true
buildArgs:
CONFIG_PROFILE: '{{ or .CONFIG_PROFILE "cdk"}}'
- &IDM
image: idm
context: docker/idm
docker:
pullParent: true
buildArgs:
CONFIG_PROFILE: '{{ or .CONFIG_PROFILE "cdk"}}'
- &DS
image: ds
context: docker/ds/ds-new
docker:
pullParent: true
dockerfile: Dockerfile
- &DS-CTS_BASE
image: ds-cts
context: docker/ds
- &DS-CTS
<<: *DS-CTS_BASE
docker:
pullParent: true
dockerfile: cts/Dockerfile
- &DS-IDREPO_BASE
image: ds-idrepo
context: docker/ds/
- &DS-IDREPO
<<: *DS-IDREPO_BASE
docker:
pullParent: true
dockerfile: idrepo/Dockerfile
- &DS-PROXY_BASE
image: ds-proxy
context: docker/ds
- &DS-PROXY
<<: *DS-PROXY_BASE
docker:
pullParent: true
dockerfile: proxy/Dockerfile
- &LDIF-IMPORTER
image: ldif-importer
context: docker/ldif-importer
- &IG
image: ig
context: docker/ig
docker:
pullParent: true
buildArgs:
CONFIG_PROFILE: '{{ or .CONFIG_PROFILE "cdk"}}'
commonArtifactSets:
default-artifacts: &default-artifacts
- *AM
- *AMSTER
- *IDM
- *DS-CTS
- *DS-IDREPO
- *IG
- *DS
# Skip building LDIF-IMPORTER. We use a fixed tag for now
# - *LDIF-IMPORTER
## End YAML Anchors
#---------------------
# Skaffold profiles
#---------------------
# Default profile
build: &default-build
artifacts: *default-artifacts
tagPolicy: &default-tag-policy
gitCommit:
variant: AbbrevTreeSha
deploy: &default-deploy
statusCheckDeadlineSeconds: 900
kustomize:
paths:
- ./kustomize/overlay/all
profiles:
# Images tagged as environment variable in a dockerd or dockerd like environment
- name: docker-image-tag
build:
tagPolicy:
envTemplate:
template: "{{.IMAGE_TAG}}"
artifacts: *default-artifacts
deploy:
kustomize:
paths:
- ./kustomize/overlay/all
# CDM s/m/l profiles. (For cdm-mini, use default profile.)
- name: mini
build: *default-build
deploy:
kustomize:
paths:
- ./kustomize/overlay/mini
- name: small
build: *default-build
deploy:
kustomize:
paths:
- ./kustomize/overlay/small
- name: medium
build: *default-build
deploy:
kustomize:
paths:
- ./kustomize/overlay/medium
- name: large
build: *default-build
deploy:
kustomize:
paths:
- ./kustomize/overlay/large
###################################################################
#####################INDIVIDUAL COMPONENTS#########################
###################################################################
- name: am
build:
artifacts:
- *AM
tagPolicy: *default-tag-policy
local:
useDockerCLI: true
deploy:
kustomize:
paths:
- ./kustomize/base/am-cdk
- name: amster
build:
artifacts:
- *AMSTER
tagPolicy: *default-tag-policy
deploy:
kustomize:
paths:
- ./kustomize/base/amster
- name: idm
build:
artifacts:
- *IDM
tagPolicy: *default-tag-policy
deploy:
kustomize:
paths:
- ./kustomize/base/idm-cdk
- name: ds
build:
artifacts:
- *DS
tagPolicy: *default-tag-policy
# deploy:
# kustomize:
# paths:
# - ./kustomize/base/ds/idrepo
# - ./kustomize/base/ds/cts
- name: ds-cts
build:
artifacts:
- *DS-CTS
# - *DS-PROXY
tagPolicy: *default-tag-policy
deploy:
kustomize:
paths:
- ./kustomize/base/ds/cts
- name: ds-idrepo
build:
artifacts:
- *DS-IDREPO
# - *DS-PROXY
tagPolicy: *default-tag-policy
deploy:
kustomize:
paths:
- ./kustomize/base/ds/idrepo
- name: ig
build:
artifacts:
- *IG
tagPolicy: *default-tag-policy
deploy:
kustomize:
paths:
- ./kustomize/base/ig
###################################################################
#######EVERYTHING BELOW THIS LINE WILL BE DEPRECATED###############
###################################################################
- name: ldif-importer
build:
artifacts:
- *LDIF-IMPORTER
tagPolicy: *default-tag-policy
deploy:
kustomize:
paths:
- ./kustomize/base/ldif-importer
# Sample profiles to launch / test just a specific product
- name: ig-only
build:
artifacts:
- *IG
tagPolicy:
sha256: {}
deploy:
kustomize:
paths:
- ./kustomize/overlay/internal-profiles/ig-only
- name: am-only
build:
artifacts:
- *AM
- *AMSTER
- *DS-CTS
- *DS-IDREPO
- *LDIF-IMPORTER
tagPolicy:
gitCommit:
variant: AbbrevCommitSha
deploy:
kustomize:
paths:
- ./kustomize/overlay/internal-profiles/am-only
- name: idm-only
build:
artifacts:
- *IDM
- *DS-IDREPO
tagPolicy:
sha256: {}
deploy:
kustomize:
paths:
- ./kustomize/overlay/internal-profiles/idm-only
- name: ds-only
build:
artifacts:
- *DS-CTS
- *DS-IDREPO
tagPolicy:
sha256: {}
deploy:
kustomize:
paths:
- ./kustomize/overlay/internal-profiles/ds-only
- name: clouddns
build:
artifacts:
- *DS-CTS
- *DS-IDREPO
- *LDIF-IMPORTER
tagPolicy:
sha256: { }
deploy:
kustomize:
paths:
- ./kustomize/overlay/multi-cluster/clouddns