How to run it locally
To run Cluster API with this provider locally:
- 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
- Create
kind
cluster:kind create cluster
- Save kubeconfig from
kind
and export it:kind get kubeconfig > /tmp/kubeconfig && export KUBECONFIG=/tmp/kubeconfig
- Initialize Cluster API controller:
clusterctl init
- Install CRDs:
make install
- Run provider controller:
make run
- Apply sample manifest with cluster definition:
kubectl apply -f ./config/samples/cluster.yaml