This repo houses some tools to make running Cluster API v1alpha2 a little bit easier.
Run ./init.sh
. This will clone some basic providers for you to try.
https://docs.tilt.dev/install.html
The Tiltfile uses the target
parameter which was introduced in v0.10.8.
Please make sure your version of Tilt is up to date.
Use kind, set up a cluster on AWS, GCP, etc. Whatever works. This will be your management cluster.
Assuming your local environment is set up for AWS access, run:
run ./devenv/setup.sh
.
This will create a single node kubernetes control plane to be used as the management cluster.
This will grab the kubeconfig and put it at ./devenv/dev-kubeconfig
.
Run kind with the provided config kind create cluster --config ./devenv/kind/config.yaml
Set KUBECONFIG.
Make sure you update the values in config.json
to point to your registry
{
"default_registry": "gcr.io/<your project>",
"default_core_image": "gcr.io/k8s-staging-cluster-api/cluster-api-controller"
}
Set the infrastructure_provider
in the Tiltfile
Define the necessary locations of the provider and ensure the IMAGE
is set correctly.
Please note the Tiltfile
assumes clusterawsadm
is in the bin directory of the AWS provider repo cloned
in the init.sh
phase. Before running tilt up
, make sure you have clusterawsadm
in the relevant path.
If you don't, run make clusterawsadm
from the AWS provider repo or update the Tiltfile
.
run tilt up
Now you can quickly iterate on Cluster API