forked from gardener/gardener
-
Notifications
You must be signed in to change notification settings - Fork 0
/
skaffold.yaml
191 lines (187 loc) · 5.33 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
---
apiVersion: skaffold/v2beta25
kind: Config
metadata:
name: etcd
deploy:
kubectl:
manifests:
- example/00-namespace-garden.yaml
kustomize:
paths:
- example/gardener-local/etcd
hooks:
after:
- host:
command:
- bash
- -ec
- |
echo "Wait until etcd is ready"
kubectl wait --for=condition=ready pod -l app=etcd -n garden --timeout=2m
---
apiVersion: skaffold/v2beta25
kind: Config
metadata:
name: controlplane
requires:
- configs:
- etcd
build:
local:
useBuildkit: true
concurrency: 3
artifacts:
- image: eu.gcr.io/gardener-project/gardener/apiserver
docker:
dockerfile: Dockerfile.local
target: apiserver
- image: eu.gcr.io/gardener-project/gardener/controller-manager
docker:
dockerfile: Dockerfile.local
target: controller-manager
- image: eu.gcr.io/gardener-project/gardener/scheduler
docker:
dockerfile: Dockerfile.local
target: scheduler
- image: eu.gcr.io/gardener-project/gardener/admission-controller
docker:
dockerfile: Dockerfile.local
target: admission-controller
deploy:
helm:
releases:
- name: gardener-controlplane
chartPath: charts/gardener/controlplane
namespace: garden
createNamespace: true
wait: true
artifactOverrides:
global:
apiserver:
image: eu.gcr.io/gardener-project/gardener/apiserver
controller:
image: eu.gcr.io/gardener-project/gardener/controller-manager
scheduler:
image: eu.gcr.io/gardener-project/gardener/scheduler
admission:
image: eu.gcr.io/gardener-project/gardener/admission-controller
imageStrategy:
helm: {}
valuesFiles:
- example/gardener-local/controlplane/values.yaml
---
apiVersion: skaffold/v2beta25
kind: Config
metadata:
name: provider-local
build:
local:
useBuildkit: true
# allow concurrency for this image build, otherwise all builds will run sequentially
concurrency: 3
artifacts:
- image: eu.gcr.io/gardener-project/gardener/extensions/provider-local
docker:
dockerfile: Dockerfile.local
target: extension-provider-local
sync:
infer:
- charts/gardener/provider-local/internal
deploy:
helm:
releases:
- name: gardener-extension-provider-local-registration
chartPath: charts/gardener/provider-local/registration
namespace: garden
artifactOverrides:
values:
image: eu.gcr.io/gardener-project/gardener/extensions/provider-local
imageStrategy:
helm: {}
---
apiVersion: skaffold/v2beta25
kind: Config
metadata:
name: local-env
deploy:
kubectl:
manifests:
- example/gardener-local/gardenlet/secret-bootstrap-token.yaml
kustomize:
paths:
- example/provider-local/overlays/skaffold
---
apiVersion: skaffold/v2beta25
kind: Config
metadata:
name: gardenlet
build:
local:
useBuildkit: true
concurrency: 3
artifacts:
- image: eu.gcr.io/gardener-project/gardener/gardenlet
docker:
dockerfile: Dockerfile.local
target: gardenlet
- image: eu.gcr.io/gardener-project/gardener/resource-manager
docker:
dockerfile: Dockerfile.local
target: resource-manager
- image: eu.gcr.io/gardener-project/gardener/seed-admission-controller
docker:
dockerfile: Dockerfile.local
target: seed-admission-controller
deploy:
helm:
hooks:
after:
- host:
command:
- bash
- -ec
- |
echo "Wait until seed is ready"
for i in `seq 1 30`;
do
if kubectl get seed local 2> /dev/null; then
break
fi
echo "Wait until seed gets created by gardenlet"
sleep 2
done
kubectl wait --for=condition=gardenletready --for=condition=extensionsready --for=condition=bootstrapped seed local --timeout=5m
releases:
- name: gardener-gardenlet
chartPath: charts/gardener/gardenlet
namespace: garden
createNamespace: true
wait: true
artifactOverrides:
global:
gardenlet:
image: eu.gcr.io/gardener-project/gardener/gardenlet
# dummy artifact overrides to make skaffold load images into cluster
resource-manager:
image: eu.gcr.io/gardener-project/gardener/resource-manager
seed-admission-controller:
image: eu.gcr.io/gardener-project/gardener/seed-admission-controller
setValueTemplates:
global:
gardenlet:
# on a local cluster, skaffold uses a local immutable tag for artifacts,
# overwrite our image vector to use the image that was just built
# see https://skaffold.dev/docs/pipeline-stages/taggers/#how-tagging-works
imageVectorOverwrite: |
images:
- name: gardener-resource-manager
repository: eu.gcr.io/gardener-project/gardener/resource-manager
tag: "{{.IMAGE_TAG7}}"
- name: gardener-seed-admission-controller
repository: eu.gcr.io/gardener-project/gardener/seed-admission-controller
tag: "{{.IMAGE_TAG8}}"
imageStrategy:
helm: {}
valuesFiles:
- example/gardener-local/gardenlet/values.yaml