@@ -211,7 +211,7 @@ If you prefer to configure the worker cluster manually, follow the steps below.
211
211
Install Flux on the worker cluster:
212
212
213
213
``` bash
214
- kubectl --context $WORKER apply --filename https://github.com/fluxcd/flux2/releases/download/v2.0.0-rc.3 /install.yaml
214
+ kubectl --context $WORKER apply --filename https://github.com/fluxcd/flux2/releases/download/v2.4.0 /install.yaml
215
215
```
216
216
217
217
Next, Flux must be configured to read from the MinIO bucket. For that, you will create a new
@@ -276,7 +276,7 @@ stringData:
276
276
apiVersion : source.toolkit.fluxcd.io/v1beta1
277
277
kind : Bucket
278
278
metadata :
279
- name : kratix-bucket
279
+ name : kratix
280
280
namespace : flux-system
281
281
spec :
282
282
interval : 10s
@@ -293,7 +293,7 @@ The above command will give an output similar to:
293
293
294
294
``` shell-session
295
295
secret/minio-credentials created
296
- bucket.source.toolkit.fluxcd.io/kratix-bucket created
296
+ bucket.source.toolkit.fluxcd.io/kratix created
297
297
```
298
298
299
299
This tutorial will not dive into details of how to configure Flux Sources, but please read on their
@@ -309,7 +309,7 @@ The above command will give an output similar to:
309
309
310
310
``` shell-session
311
311
NAME ENDPOINT AGE READY STATUS
312
- kratix-bucket 172.18.0.2:31337 1h True stored artifact: revision 'sha256:some-sha'
312
+ kratix 172.18.0.2:31337 1h True stored artifact: revision 'sha256:some-sha'
313
313
```
314
314
315
315
Next, you must tell Flux what to do with this Source. Flux does continuous
@@ -325,38 +325,38 @@ cat <<EOF | kubectl --context $WORKER apply --filename -
325
325
apiVersion : kustomize.toolkit.fluxcd.io/v1
326
326
kind : Kustomization
327
327
metadata :
328
- name : kratix-workload -dependencies
328
+ name : kratix-worker -dependencies
329
329
namespace : flux-system
330
330
spec :
331
331
interval : 8s
332
332
prune : true
333
333
sourceRef :
334
334
kind : Bucket
335
- name : kratix-bucket
335
+ name : kratix
336
336
path : ./worker-cluster/dependencies
337
337
---
338
338
apiVersion : kustomize.toolkit.fluxcd.io/v1
339
339
kind : Kustomization
340
340
metadata :
341
- name : kratix-workload -resources
341
+ name : kratix-worker -resources
342
342
namespace : flux-system
343
343
spec :
344
344
interval : 3s
345
345
prune : true
346
346
dependsOn :
347
- - name : kratix-workload -dependencies
347
+ - name : kratix-worker -dependencies
348
348
sourceRef :
349
349
kind : Bucket
350
- name : kratix-bucket
350
+ name : kratix
351
351
path : ./worker-cluster/resources
352
352
EOF
353
353
```
354
354
355
355
The above command will give an output similar to:
356
356
357
357
``` shell-session
358
- kustomization.kustomize.toolkit.fluxcd.io/kratix-workload -dependencies created
359
- kustomization.kustomize.toolkit.fluxcd.io/kratix-workload -resources created
358
+ kustomization.kustomize.toolkit.fluxcd.io/kratix-worker -dependencies created
359
+ kustomization.kustomize.toolkit.fluxcd.io/kratix-worker -resources created
360
360
```
361
361
362
362
You will notice that there are two Kustomizations created. When scheduling
@@ -374,7 +374,7 @@ and `name` to build the full path for that cluster within the State Store.
374
374
375
375
The first Kustomization above is for dependencies (CRDs), while the second is for the other
376
376
resources (note the ` spec.path ` ). You can also note that the
377
- ` kratix-workload -resources ` depends on the ` kratix-workload -dependencies ` . That's to
377
+ ` kratix-worker -resources ` depends on the ` kratix-worker -dependencies ` . That's to
378
378
avoid failures when a resource documents uses a GVK being defined by a CRD
379
379
document.
380
380
0 commit comments