/cluster-api-provider-kind

Kind cluster provider implementation for CAPI

Primary LanguageGo

How to run it locally

To run Cluster API with this provider locally:

  1. Install clusterctl:
curl -L https://github.com/kubernetes-sigs/cluster-api/releases/download/v1.1.3/clusterctl-linux-amd64 -o clusterctl
chmod +x ./clusterctl
sudo mv ./clusterctl /usr/local/bin/clusterctl
  1. Create kind cluster: kind create cluster
  2. Save kubeconfig from kind and export it: kind get kubeconfig > /tmp/kubeconfig && export KUBECONFIG=/tmp/kubeconfig
  3. Initialize Cluster API controller: clusterctl init
  4. Install CRDs: make install
  5. Run provider controller: make run
  6. Apply sample manifest with cluster definition: kubectl apply -f ./config/samples/cluster.yaml