Create A WORKLOAD cluster

Create A WORKLOAD cluster

Create a WORKLOAD cluster for a given MANAGEMENT clusterId This requires the management cluster to be created first and addon API to be invoked before triggering this api

Request
URI
POST
https://{api_host}/:9443/api/admin/clusters/{clusterType}/{mgmtClusterId}
COPY
Path Parameters
clusterType
Required

clusterType

mgmtClusterId
Required

mgmtClusterId

Query Parameters
timeoutInMinute
Required

timeoutInMinute


Request Body
KubernetesCluster of type(s) application/json
Optional
{
    "clusterCIDR": "100.96.0.0/11",
    "controlPlaneEndpointIP": "10.182.60.189",
    "workerNode": {
        "vmMemMiB": 4096,
        "vmNumCPUs": 2,
        "nameservers": [
            "10.182.62.215",
            "10.182.62.215"
        ],
        "replicas": 3,
        "name": "tca-cluster-master-0",
        "vmDiskGiB": 40,
        "labels": [
            "node-role.kubernetes.io/node=",
            "node-role.kubernetes.io/node="
        ]
    },
    "masterNode": {
        "vmMemMiB": 4096,
        "vmNumCPUs": 2,
        "nameservers": [
            "10.182.62.215",
            "10.182.62.215"
        ],
        "replicas": 3,
        "name": "tca-cluster-master-0",
        "vmDiskGiB": 40,
        "labels": [
            "node-role.kubernetes.io/node=",
            "node-role.kubernetes.io/node="
        ]
    },
    "clusterName": "tca-cluster1",
    "clusterPassword": "Password",
    "contextInfrastructure": {
        "type": "vsphere",
        "version": "7.0.2"
    },
    "vsphereContext": {
        "password": "Password",
        "vmTemplate": "photon-3-kube-v1.21.2+vmware.1",
        "dataCenter": "NameOfCluster",
        "vmFolder": "tkg-vms",
        "ip": "10.182.62.215",
        "dataStore": "nfs0-1",
        "username": "[email protected]",
        "network": "VM Network",
        "resourcePool": "tkg-rp"
    },
    "serviceCIDR": "100.64.0.0/13",
    "kubernetesVersion": "v1.21.2+vmware.1",
    "airgap": {
        "caCert": "caCert",
        "fqdn": "example.vmware.com"
    }
}
string
clusterName
Required

name of cluster. Note cluster name should not contains '_'

contextInfrastructure
Required

contextInfrastructure

vsphereContext
Required

vsphereContext

string
serviceCIDR
Required

service CIDR

string
clusterCIDR
Required

cluster CIDR

string
kubernetesVersion
Required

kubernetes version

string
controlPlaneEndpointIP
Required

Endpoint IP Address accessible from outside cluster

string
clusterPassword
Required

password to access cluster

masterNode
Required

masterNode

workerNode
Required

workerNode

airgap
Optional

airgap

Authentication
This operation uses the following authentication methods.
Responses
202

Status 202 the request has been accepted for async processing

Returns inline_response_202_1 of type(s) application/json
{
    "id": "11223344-5566-7788-99aa-bbccddeeff00"
}
string As uuid As uuid
id
Required

A universally unique identifier (UUID) is a 128-bit label