Skip to content

Commit 5158598

Browse files
authored
Merge pull request #172 from syntasso/ab/unify-bucket-name
chore: rename all references to kratix-bucket to kratix
2 parents f46655f + f741d03 commit 5158598

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

docs/workshop/part-0/02-create-clusters.mdx

+12-12
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ If you prefer to configure the worker cluster manually, follow the steps below.
211211
Install Flux on the worker cluster:
212212

213213
```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
215215
```
216216

217217
Next, Flux must be configured to read from the MinIO bucket. For that, you will create a new
@@ -276,7 +276,7 @@ stringData:
276276
apiVersion: source.toolkit.fluxcd.io/v1beta1
277277
kind: Bucket
278278
metadata:
279-
name: kratix-bucket
279+
name: kratix
280280
namespace: flux-system
281281
spec:
282282
interval: 10s
@@ -293,7 +293,7 @@ The above command will give an output similar to:
293293

294294
```shell-session
295295
secret/minio-credentials created
296-
bucket.source.toolkit.fluxcd.io/kratix-bucket created
296+
bucket.source.toolkit.fluxcd.io/kratix created
297297
```
298298

299299
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:
309309

310310
```shell-session
311311
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'
313313
```
314314

315315
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 -
325325
apiVersion: kustomize.toolkit.fluxcd.io/v1
326326
kind: Kustomization
327327
metadata:
328-
name: kratix-workload-dependencies
328+
name: kratix-worker-dependencies
329329
namespace: flux-system
330330
spec:
331331
interval: 8s
332332
prune: true
333333
sourceRef:
334334
kind: Bucket
335-
name: kratix-bucket
335+
name: kratix
336336
path: ./worker-cluster/dependencies
337337
---
338338
apiVersion: kustomize.toolkit.fluxcd.io/v1
339339
kind: Kustomization
340340
metadata:
341-
name: kratix-workload-resources
341+
name: kratix-worker-resources
342342
namespace: flux-system
343343
spec:
344344
interval: 3s
345345
prune: true
346346
dependsOn:
347-
- name: kratix-workload-dependencies
347+
- name: kratix-worker-dependencies
348348
sourceRef:
349349
kind: Bucket
350-
name: kratix-bucket
350+
name: kratix
351351
path: ./worker-cluster/resources
352352
EOF
353353
```
354354

355355
The above command will give an output similar to:
356356

357357
```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
360360
```
361361

362362
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.
374374

375375
The first Kustomization above is for dependencies (CRDs), while the second is for the other
376376
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
378378
avoid failures when a resource documents uses a GVK being defined by a CRD
379379
document.
380380

0 commit comments

Comments
 (0)