This script will create and configure a kind cluster named capi, backed by Podman, for use with Cluster API's Tiltfile.
It is specifically written for macOS, where Podman configuration must be changed on the Podman virtual machine.
Code heavily borrowed from https://github.com/fishpercolator/silverblue-tilt and the original blog post
At the moment, the script takes no options - just run it:
create-capi-kind-cluster.sh
It will:
- Create a local registry container and enable HTTP push/pull for Podman within the Podman VM. Without this,
podman pushwill fail due to using HTTPS by default. - Create a Kind control plane container and set up redirection so that
localhost:5001will map to the registry container and port. - Attach the registry container to the
kindpodman network so thatkindand the registry can communicate.