Skip to content

Commit

Permalink
fix: add step for generating gitea creds and namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
richcooper95 committed Nov 1, 2024
1 parent 6c18ad4 commit 78c85b8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions docs/main/04-guides/01-installing-kratix/04-others.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ If your are using local KinD clusters you can install MinIO or Gitea as an in-cl
<TabItem value="gitea" label="Git (on KinD)">

```bash
# Generate Gitea credentials and namespace
bash <(curl -s https://raw.githubusercontent.com/syntasso/kratix/refs/heads/main/scripts/generate-gitea-credentials.sh)

# Install Gitea and register it as a Git State Store
kubectl apply --context $PLATFORM --filename https://raw.githubusercontent.com/syntasso/kratix/main/hack/platform/gitea-install.yaml
kubectl apply --context $PLATFORM --filename https://raw.githubusercontent.com/syntasso/kratix/main/config/samples/platform_v1alpha1_gitstatestore.yaml
Expand All @@ -87,7 +90,7 @@ If your are using local KinD clusters you can install MinIO or Gitea as an in-cl
## Set up a worker cluster {#worker-setup}

### Create worker cluster
If you are not using a pre-existing cluster, create your platform cluster locally using KinD:
If you are not using a pre-existing cluster, create your worker cluster locally using KinD:
```bash
kind create cluster --image kindest/node:v1.27.3 --name worker

Expand Down Expand Up @@ -145,7 +148,7 @@ Follow the steps below that match the State Store you created previously:
<TabItem value="minio" label="Bucket (on KinD)">

```bash
# Configure Flux to pull down from MinIO
# Register the worker cluster as a Destination
kubectl apply --context $PLATFORM --filename https://raw.githubusercontent.com/syntasso/kratix/main/config/samples/platform_v1alpha1_worker.yaml
```

Expand All @@ -154,7 +157,7 @@ kubectl apply --context $PLATFORM --filename https://raw.githubusercontent.com/s
<TabItem value="gitea" label="Git (on KinD)">

```bash
# Install flux on the worker and configure it to pull down from MinIO
# Register the worker cluster as a Destination
curl https://raw.githubusercontent.com/syntasso/kratix/main/config/samples/platform_v1alpha1_worker.yaml | \
sed "s_BucketStateStore_GitStateStore_g" | \
kubectl apply --context $PLATFORM --filename -
Expand All @@ -167,7 +170,7 @@ curl https://raw.githubusercontent.com/syntasso/kratix/main/config/samples/platf
You will need to manual configure the Destination resources to use created State Store.
Download and modify this [example configuration](https://raw.githubusercontent.com/syntasso/kratix/main/config/samples/platform_v1alpha1_worker.yaml),
replacing the `spec.StateStoreRef.name`, `spec.StateStoreRef.namespace` and `spec.StateStoreRef.kind`
to match the previously created State Store
to match the previously created State Store.

</TabItem>
</Tabs>
Expand Down

0 comments on commit 78c85b8

Please sign in to comment.