Skip to main content

Create a new Kubernetes cluster client

Select

SaaS
Customer Managed

API to create new Kubernetes cluster client

Request Body
  • apiServer string

    API Server Endpoint of the cluster

  • serviceAccount string

    Name of the Service Account to authenticate with the cluster

  • serviceToken base64

    Secret token to authenticate with the cluster. The secret token must be Base64 encoded.

  • accessNodes object[]
  • id int32
  • name string
  • type string
  • name string

    Name of the Kubernetes Cluster

  • serviceType KubernetesServiceTypes

    Possible values: [ONPREM, AKS]

    Default value: ONPREM

    The Service Type of the Kubernetes cluster

  • etcdProtection object

    Enable ETCD Protection on the Kubernetes Cluster

  • enabled boolean

    Denote if etcd protection is enabled

  • plan object
  • id int32
  • name string
Responses

OK


Schema
  • id int32

    ID of the Kubernetes Cluster created

  • name string

    Name of the Kubernetes Cluster

  • etcd object

    Name and ID of the ETCD Application Group

  • id int32
  • name string
POST /v5/kubernetes/cluster    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body

{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/Cluster' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"apiServer": "string",
"serviceAccount": "string",
"serviceToken": "string",
"accessNodes": [
{
"id": 0,
"name": "string",
"type": "string"
}
],
"name": "string",
"serviceType": "ONPREM",
"etcdProtection": {
"enabled": true,
"plan": {
"id": 0,
"name": "string"
}
}
}'