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
Query Parameters
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 '_'
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
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
On This Page
K8S Operations
PUT
Addon API To update addon more details To cluster
POST
Create A MANAGEMENT cluster
POST
Create A WORKLOAD cluster
DELETE
Delete A cluster
DELETE
Delete kubeconfig data
GET
Get Addon details for A cluster
GET
Get details Of cluster
GET
Get kubeconfig data - A secure and standard method To enable access To your Kubernetes clusters
GET
Get kubeconfig from DB
GET
GET list Of supported namespaces and services To Be installed On TCA/TCA-CP
GET
Get status Of A cluster creation
GET
Get status Of Addon request for A cluster
GET
Get status Of service being installed Or uninstalled
GET
List all services for A given namespace In A specified cluster
GET
List clusters Of A given type either MANAGEMENT Or WORKLOAD
POST
Start An installation Of A specific service On A given namespace On TCA cluster
POST
Store kubeconfig data
POST
Store kubeconfig To DB
POST
Uninstall A specific service On A given namespace On TCA cluster