Nutanix
Cluster API requires that ClusterClasses
referenced by a Cluster
reside in the same namespace as the Cluster
. To
create the necessary ClusterClass
, run:
kubectl apply --server-side \
-f https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v0.23.1/nutanix-cluster-class.yaml
You can then create your cluster. First, let's list the required variables:
clusterctl generate cluster my-cluster \
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v0.23.1/nutanix-cluster-cilium-helm-addon.yaml \
--list-variables
Export the required variables and any optional variables that you may want to set:
export CONTROL_PLANE_ENDPOINT_IP=<value> \
DOCKER_HUB_PASSWORD=<value> \
DOCKER_HUB_USERNAME=<value> \
NUTANIX_ENDPOINT=<value> \
NUTANIX_INSECURE=<value> \
NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME=<value> \
NUTANIX_PASSWORD=<value> \
NUTANIX_PORT=<value> \
NUTANIX_PRISM_ELEMENT_CLUSTER_NAME=<value> \
NUTANIX_STORAGE_CONTAINER_NAME=<value> \
NUTANIX_SUBNET_NAME=<value> \
NUTANIX_USER=<value>
And create your cluster:
clusterctl generate cluster my-cluster \
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v0.23.1/nutanix-cluster-cilium-helm-addon.yaml \
--kubernetes-version=v1.31.2 \
--worker-machine-count=1 \
| kubectl apply --server-side -f -
To customize your cluster configuration prior to creation, generate the cluster definition to a file and edit it before applying:
clusterctl generate cluster my-cluster \
--from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v0.23.1/nutanix-cluster-cilium-helm-addon.yaml \
--kubernetes-version=v1.31.2 >mycluster.yaml
# EDIT mycluster.yaml
kubectl apply --server-side -f mycluster.yaml
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.