@ -75,12 +75,12 @@ cluster e.g. `staging-cluster` and `production-cluster`:
```sh
├── staging-cluster # < - path = staging-cluster
│ └── gotk -system # < - namespace dir generated by bootstrap
│ └── flux -system # < - namespace dir generated by bootstrap
│ ├── toolkit-components.yaml
│ ├── toolkit-kustomization.yaml
│ └── toolkit-source.yaml
└── production-cluster # < - path = production-cluster
└── gotk -system
└── flux -system
```
!!! hint "Change the default branch"
@ -205,7 +205,7 @@ cd my-repository
Create a directory inside the repository:
```sh
mkdir -p ./my-cluster/gotk -system
mkdir -p ./my-cluster/flux -system
```
Generate the toolkit manifests with:
@ -213,7 +213,7 @@ Generate the toolkit manifests with:
```sh
gotk install --version=latest \
--arch=amd64 \ # on ARM64/AARCH64 clusters use --arch=arm64
--export > ./my-cluster/gotk -system/toolkit-components.yaml
--export > ./my-cluster/flux -system/toolkit-components.yaml
```
If your cluster must pull images from a private container registry, first you should pull
@ -225,12 +225,12 @@ docker tag ghcr.io/fluxcd/source-controller:v0.0.14 registry.internal/fluxcd/sou
docker push registry.internal/fluxcd/source-controller:v0.0.14
```
Create the pull secret in the ` gotk -system` namespace:
Create the pull secret in the ` flux -system` namespace:
```sh
kubectl create ns gotk -system
kubectl create ns flux -system
kubectl -n gotk -system create secret generic regcred \
kubectl -n flux -system create secret generic regcred \
--from-file=.dockerconfigjson=/.docker/config.json \
--type=kubernetes.io/dockerconfigjson
```
@ -241,7 +241,7 @@ Set your registry domain, and the pull secret when generating the manifests:
gotk install --version=latest \
--registry=registry.internal/fluxcd \
--image-pull-secret=regcred \
--export > ./my-cluster/gotk -system/toolkit-components.yaml
--export > ./my-cluster/flux -system/toolkit-components.yaml
```
Commit and push the manifest to the master branch:
@ -253,7 +253,7 @@ git add -A && git commit -m "add toolkit manifests" && git push
Apply the manifests on your cluster:
```sh
kubectl apply -f ./my-cluster/gotk -system/toolkit-components.yaml
kubectl apply -f ./my-cluster/flux -system/toolkit-components.yaml
```
Verify that the toolkit controllers have started:
@ -265,7 +265,7 @@ gotk check
Create a `GitRepository` object on your cluster by specifying the SSH address of your repo:
```sh
gotk create source git gotk -system \
gotk create source git flux -system \
--url= ssh://< host > /< org > /my-repository \
--ssh-key-algorithm=ecdsa \
--ssh-ecdsa-curve=p521 \
@ -279,7 +279,7 @@ If you don't specify the SSH algorithm, then gotk will generate an RSA 2048 bits
If your Git server supports basic auth, you can set the URL to HTTPS and specify the credentials with:
```sh
gotk create source git gotk -system \
gotk create source git flux -system \
--url=https://< host > /< org > /my-repository \
--username=my-username \
--password=my-password \
@ -290,8 +290,8 @@ gotk create source git gotk-system \
Create a `Kustomization` object on your cluster:
```sh
gotk create kustomization gotk -system \
--source=gotk -system \
gotk create kustomization flux -system \
--source=flux -system \
--path="./my-cluster" \
--prune=true \
--interval=10m
@ -300,11 +300,11 @@ gotk create kustomization gotk-system \
Export both objects, commit and push the manifests to Git:
```sh
gotk export source git gotk -system \
> ./my-cluster/gotk -system/toolkit-source.yaml
gotk export source git flux -system \
> ./my-cluster/flux -system/toolkit-source.yaml
gotk export kustomization gotk -system \
> ./my-cluster/gotk -system/toolkit-kustomization.yaml
gotk export kustomization flux -system \
> ./my-cluster/flux -system/toolkit-kustomization.yaml
git add -A & & git commit -m "add toolkit reconciliation" & & git push
```
@ -313,7 +313,7 @@ To upgrade the toolkit to a newer version, run the install command and commit th
```sh
gotk install --version=latest \
--export > ./my-cluster/gotk -system/toolkit-components.yaml
--export > ./my-cluster/flux -system/toolkit-components.yaml
git add -A & & git commit -m "update toolkit" & & git push
```
@ -367,7 +367,7 @@ gotk create source helm stable \
gotk create helmrelease sealed-secrets \
--interval=1h \
--release-name=sealed-secrets \
--target-namespace=gotk -system \
--target-namespace=flux -system \
--source=HelmRepository/stable \
--chart=sealed-secrets \
--chart-version="1.10.x"