@ -75,12 +75,12 @@ cluster e.g. `staging-cluster` and `production-cluster`:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					├── staging-cluster # < -  path = staging-cluster 
├── staging-cluster # < -  path = staging-cluster 
 
			
		
	
		
		
			
				
					
					│   └── gotk -system # < -  namespace  dir  generated  by  bootstrap 
│   └── flux -system # < -  namespace  dir  generated  by  bootstrap 
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					│       ├── toolkit-components.yaml
│       ├── toolkit-components.yaml
 
			
		
	
		
		
			
				
					
					│       ├── toolkit-kustomization.yaml
│       ├── toolkit-kustomization.yaml
 
			
		
	
		
		
			
				
					
					│       └── toolkit-source.yaml
│       └── toolkit-source.yaml
 
			
		
	
		
		
			
				
					
					└── production-cluster # < -  path = production-cluster 
└── production-cluster # < -  path = production-cluster 
 
			
		
	
		
		
			
				
					
					    └── gotk -system
    └── flux -system
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					``` 
``` 
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					!!! hint "Change the default branch"
!!! hint "Change the default branch"
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -205,7 +205,7 @@ cd my-repository
 
			
		
	
		
		
			
				
					
					Create a directory inside the repository:
Create a directory inside the repository:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					mkdir -p ./my-cluster/gotk -system
mkdir -p ./my-cluster/flux -system
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					```
```
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					Generate the toolkit manifests with:
Generate the toolkit manifests with:
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -213,7 +213,7 @@ Generate the toolkit manifests with:
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					gotk install --version=latest \
gotk install --version=latest \
 
			
		
	
		
		
			
				
					
					  --arch=amd64 \ # on ARM64/AARCH64 clusters use --arch=arm64
  --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
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
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
```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 \
    --from-file=.dockerconfigjson=/.docker/config.json \
 
			
		
	
		
		
			
				
					
					    --type=kubernetes.io/dockerconfigjson
    --type=kubernetes.io/dockerconfigjson
 
			
		
	
		
		
			
				
					
					```
```
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -241,7 +241,7 @@ Set your registry domain, and the pull secret when generating the manifests:
 
			
		
	
		
		
			
				
					
					gotk install --version=latest \
gotk install --version=latest \
 
			
		
	
		
		
			
				
					
					  --registry=registry.internal/fluxcd \
  --registry=registry.internal/fluxcd \
 
			
		
	
		
		
			
				
					
					  --image-pull-secret=regcred \
  --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:
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:
Apply the manifests on your cluster:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```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:
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:
Create a `GitRepository`  object on your cluster by specifying the SSH address of your repo:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					gotk create source git gotk -system \
gotk create source git flux -system \
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					  --url= ssh://< host > /< org > /my-repository \
  --url= ssh://< host > /< org > /my-repository \
 
			
		
	
		
		
			
				
					
					  --ssh-key-algorithm=ecdsa \
  --ssh-key-algorithm=ecdsa \
 
			
		
	
		
		
			
				
					
					  --ssh-ecdsa-curve=p521 \
  --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:
If your Git server supports basic auth, you can set the URL to HTTPS and specify the credentials with:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					gotk create source git gotk -system \
gotk create source git flux -system \
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					  --url=https://< host > /< org > /my-repository \
  --url=https://< host > /< org > /my-repository \
 
			
		
	
		
		
			
				
					
					  --username=my-username \
  --username=my-username \
 
			
		
	
		
		
			
				
					
					  --password=my-password \
  --password=my-password \
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -290,8 +290,8 @@ gotk create source git gotk-system \
 
			
		
	
		
		
			
				
					
					Create a `Kustomization`  object on your cluster:
Create a `Kustomization`  object on your cluster:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					gotk create kustomization gotk -system \
gotk create kustomization flux -system \
 
			
				
				
			
		
	
		
		
			
				
					
					  --source=gotk -system \
  --source=flux -system \
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					  --path="./my-cluster" \
  --path="./my-cluster" \
 
			
		
	
		
		
			
				
					
					  --prune=true \
  --prune=true \
 
			
		
	
		
		
			
				
					
					  --interval=10m
  --interval=10m
 
			
		
	
	
		
		
			
				
					
						
						
						
							
								 
						
					 
					@ -300,11 +300,11 @@ gotk create kustomization gotk-system \
 
			
		
	
		
		
			
				
					
					Export both objects, commit and push the manifests to Git:
Export both objects, commit and push the manifests to Git:
 
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					```sh
```sh
 
			
		
	
		
		
			
				
					
					gotk export source git gotk -system \
gotk export source git flux -system \
 
			
				
				
			
		
	
		
		
			
				
					
					  > ./my-cluster/gotk -system/toolkit-source.yaml
  > ./my-cluster/flux -system/toolkit-source.yaml
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					gotk export kustomization gotk -system \
gotk export kustomization flux -system \
 
			
				
				
			
		
	
		
		
			
				
					
					  > ./my-cluster/gotk -system/toolkit-kustomization.yaml
  > ./my-cluster/flux -system/toolkit-kustomization.yaml
 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					git add -A & &  git commit -m "add toolkit reconciliation" & &  git push
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
```sh
 
			
		
	
		
		
			
				
					
					gotk install --version=latest \
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
git add -A & &  git commit -m "update toolkit" & &  git push
 
			
		
	
		
		
			
				
					
					```
```
 
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -367,7 +367,7 @@ gotk create source helm stable \
 
			
		
	
		
		
			
				
					
					gotk create helmrelease sealed-secrets \
gotk create helmrelease sealed-secrets \
 
			
		
	
		
		
			
				
					
					  --interval=1h \
  --interval=1h \
 
			
		
	
		
		
			
				
					
					  --release-name=sealed-secrets \
  --release-name=sealed-secrets \
 
			
		
	
		
		
			
				
					
					  --target-namespace=gotk -system \
  --target-namespace=flux -system \
 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					  --source=HelmRepository/stable \
  --source=HelmRepository/stable \
 
			
		
	
		
		
			
				
					
					  --chart=sealed-secrets \
  --chart=sealed-secrets \
 
			
		
	
		
		
			
				
					
					  --chart-version="1.10.x"
  --chart-version="1.10.x"