kratix: kratix `./scripts/quick-start.sh --git` does not ever run

When running the quick start script with just git, the system never reconciles. This is because the worker does not have the right secret for gitea.

Example output:

quick_start_with_platform_destination
⬇️
~/dev/syntasso/kratix ~/dev/syntasso/kratix-demos/backstage
running: ./scripts/quick-start.sh --git --recreate
Looking for KinD... ✓
Looking for kubectl... ✓
Looking for docker... ✓
Looking for distribution/kratix.yaml...distribution/kratix.yaml not found; downloading latest version...
 ✓
Deleting pre-existing clusters... ✓
Loading KinD images... ✓
No kind clusters found.
No kind clusters found.
Creating worker destination...
Creating platform destination...
 \ ✓
Finished creating platform destination...
Loading images in platform destination...
 ✓
Finished creating worker destination...
 ✓
Finished loading images in platform destination...
Setting up platform destination...
 ✓
Finished setting up platform destination...
Setting up worker destination...
 ✓
Finished setting up worker destination...
Waiting for local repository to be running... ✓
Waiting for system to reconcile... -

It's taking longer than usual for the system to reconcile.
You can check the pods on the platform and worker Destinations for debugging information.
This script will continue to wait. You can kill it with CTRL+C.

Waiting for local repository to be running... /^C/Users/abbybangser/dev/syntasso/kratix/scripts/utils.sh: line 88: kill: (-7773)

state of secrets in worker cluster:

$ k get secrets -A --context kind-worker
NAMESPACE     NAME                     TYPE                            DATA   AGE
kube-system   bootstrap-token-abcdef   bootstrap.kubernetes.io/token   6      15m

state of secrets in platform cluster:

$ k get secrets -A --context kind-platform
NAMESPACE                NAME                      TYPE                            DATA   AGE
cert-manager             cert-manager-webhook-ca   Opaque                          3      15m
default                  gitea-credentials         Opaque                          4      14m
flux-system              gitea-credentials         Opaque                          4      14m
gitea                    gitea                     Opaque                          1      15m
gitea                    gitea-credentials         Opaque                          4      14m
gitea                    gitea-init                Opaque                          2      15m
gitea                    gitea-inline-config       Opaque                          7      15m
gitea                    gitea-postgresql          Opaque                          2      15m
kratix-platform-system   webhook-server-cert       kubernetes.io/tls               3      14m
kube-system              bootstrap-token-abcdef    bootstrap.kubernetes.io/token   6      16m

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (7 by maintainers)

Commits related to this issue

Most upvoted comments

the script should download the gitea cli to the kratix/bin directory; odd that it hasn’t. Can you run make gitea-cli and check that it gets in there? nonetheless, i pushed a fix to use the system gitea client if that’s available in the host machine

Can you please check if the folder bin exists and create it if this is not the case otherwise users will got this issue

make gitea-cli
chmod: /Users/cmoullia/code/kratix/kratix/bin/gitea: No such file or directory
make: *** [gitea-cli] Error 1

mkdir bin
make gitea-cli
...
ls -la bin
total 296072
drwxr-xr-x@  3 cmoullia  staff         96 May  8 12:16 .
drwxr-xr-x@ 34 cmoullia  staff       1088 May  8 12:16 ..
-rwxr-xr-x@  1 cmoullia  staff  136926322 May  8 12:16 gitea

Gitea’s pod fails to start on kind-platform when we execute

This is fixed too using main branch commit 27000538 and podman (5.0.2 on macos) & rootfull

./scripts/quick-start.sh --git --recreate
Looking for KinD... ✓
Looking for kubectl... ✓
Looking for docker... ✓
Looking for distribution/kratix.yaml...distribution/kratix.yaml not found; downloading latest version...
 ✓
Deleting pre-existing clusters... ✓
No kind clusters found.
No kind clusters found.
Creating worker destination...
Creating platform destination...
 \ ✓
Finished creating worker destination ✓
 ✓
Finished creating platform destination ✓
Setting up platform destination... ✓
Setting up worker destination... ✓
Waiting for local repository to be running... ✓
Waiting for system to reconcile... ✓
Kratix installation is complete!

If you are following the docs available at kratix.io, make sure to set the following environment variables:
export PLATFORM=kind-platform
export WORKER=kind-worker

Screenshot 2024-05-17 at 12 51 06

I would like to see this on idpbuilder! Happy to help.

will check it with podman and see if that might be why its failing on your side 🤔

I use this podman version on macos

podman version 5.0.2