|
| 1 | ++++ |
| 2 | +title = "Nutanix" |
| 3 | +icon = "fa-solid fa-server" |
| 4 | +weight = 2 |
| 5 | ++++ |
| 6 | + |
| 7 | + |
| 8 | +Cluster API requires that `ClusterClasses` referenced by a `Cluster` reside in the same namespace as the `Cluster`. To |
| 9 | +create the necessary `ClusterClass`, run: |
| 10 | + |
| 11 | +```shell |
| 12 | +kubectl apply --server-side \ |
| 13 | + -f https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-class.yaml |
| 14 | +``` |
| 15 | + |
| 16 | +You can then create your cluster. First, let's list the required variables: |
| 17 | + |
| 18 | +```shell |
| 19 | +clusterctl generate cluster my-cluster \ |
| 20 | + --from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-cilium-helm-addon.yaml \ |
| 21 | + --list-variables |
| 22 | +``` |
| 23 | + |
| 24 | +Export the required variables and any optional variables that you may want to set: |
| 25 | + |
| 26 | +```shell |
| 27 | +export CONTROL_PLANE_ENDPOINT_IP=<value> \ |
| 28 | + DOCKER_HUB_PASSWORD=<value> \ |
| 29 | + DOCKER_HUB_USERNAME=<value> \ |
| 30 | + NUTANIX_ENDPOINT=<value> \ |
| 31 | + NUTANIX_INSECURE=<value> \ |
| 32 | + NUTANIX_MACHINE_TEMPLATE_IMAGE_NAME=<value> \ |
| 33 | + NUTANIX_PASSWORD=<value> \ |
| 34 | + NUTANIX_PORT=<value> \ |
| 35 | + NUTANIX_PRISM_ELEMENT_CLUSTER_NAME=<value> \ |
| 36 | + NUTANIX_STORAGE_CONTAINER_NAME=<value> \ |
| 37 | + NUTANIX_SUBNET_NAME=<value> \ |
| 38 | + NUTANIX_USER |
| 39 | +``` |
| 40 | + |
| 41 | +And create your cluster: |
| 42 | + |
| 43 | +```shell |
| 44 | +clusterctl generate cluster my-cluster \ |
| 45 | + --from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-cilium-helm-addon.yaml | kubectl apply --server-side -f - |
| 46 | +``` |
| 47 | + |
| 48 | +To customize your cluster configuration prior to creation, generate the cluster definition to a file and edit it before applying: |
| 49 | + |
| 50 | +```shell |
| 51 | +clusterctl generate cluster my-cluster \ |
| 52 | + --from https://github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/releases/download/v{{< param "version" >}}/nutanix-cluster-cilium-helm-addon.yaml >mycluster.yaml |
| 53 | + |
| 54 | +# EDIT mycluster.yaml |
| 55 | + |
| 56 | +kubectl apply --server-side -f mycluster.yaml |
| 57 | +``` |
0 commit comments