Get started with Kurator Cluster API

The easiest way to deploy cluster with Kurator Cluster API.

In this tutorial we’ll cover the basics of how to use Cluster API to provision Kubernetes clusters.

Create a vanilla cluster with Cluster API

Apply the cluster manifest:

kubectl apply -f examples/cluster/quickstart.yaml

Wait the control plane is up:

kubectl get cluster -w

Retrieve the cluster’s Kubeconfig:

clusterctl get kubeconfig quickstart > /root/.kube/quickstart.kubeconfig

Check node state:

kubectl --kubeconfig=/root/.kube/quickstart.kubeconfig get nodes

Cleanup

IMPORTANT: In order to ensure a proper cleanup of your infrastructure you must always delete the cluster object. Deleting the entire cluster template with kubectl delete -f capi-quickstart.yaml might lead to pending resources to be cleaned up manually.

kubectl delete cluster --all

Uninstall cluster operator:

helm uninstall kurator-cluster-operator -n kurator-system

Optional, clean CRDs:

kubectl delete crd $(kubectl get crds | grep cluster.x-k8s.io | awk '{print $1}')
kubectl delete crd $(kubectl get crds | grep kurator.dev | awk '{print $1}')

Optional, delete namespace:

kubectl delete ns kurator-system

Optional, unintall cert manager:

helm uninstall -n cert-manager cert-manager

Optional, shutdown cluster:

kind delete cluster --name kurator