Krutrim Kubernetes System SDK
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
namestringOptionalExample:
deepak-cluster-nov-17versionstringOptionalExample:
1.33Responses
201
Created
No content
post/v1/kks/clusters
POST /v1/kks/clusters HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 201
{
"name": "deepak-cluster-nov-17",
"version": "1.33",
"resourcesVpcConfig": {
"vpcKrn": "text",
"subnetKrns": "text"
},
"kubernetesNetworkConfig": {
"podIpv4Cidr": "192.168.0.0/16",
"serviceIpv4Cidr": "10.100.0.0/16"
}
}201
Created
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Body
namestringOptionalExample:
kks-nginstanceTypesstringOptionalExample:
c8.16diskSizeintegerOptionalExample:
100subnetsKrnstringOptional
Responses
201
Created
No content
post/v1/kks/clusters/{clusterKrn}/node-groups
POST /v1/kks/clusters/{clusterKrn}/node-groups HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 242
{
"name": "kks-ng",
"instanceTypes": "c8.16",
"diskSize": 100,
"scalingConfig": {
"minSize": 1,
"maxSize": 1,
"desiredSize": 1
},
"subnetsKrn": "text",
"remoteAccess": {
"sshKeyKrn": "text",
"sourceSecurityGroupsKrns": [
"text"
]
},
"nodeRepairConfig": {
"enabled": true
}
}201
Created
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Body
addonNamestringOptional
Responses
201
Installed
No content
post/v1/kks/clusters/{clusterKrn}/addons
POST /v1/kks/clusters/{clusterKrn}/addons HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"addonName": "text"
}201
Installed
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Responses
200
kubeconfig file content
No content
get/v1/kks/clusters/{clusterKrn}/kubeconfig
GET /v1/kks/clusters/{clusterKrn}/kubeconfig HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
kubeconfig file content
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Responses
200
Success
No content
get/v1/kks/clusters/{clusterKrn}
GET /v1/kks/clusters/{clusterKrn} HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Success
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Responses
200
Success
No content
get/v1/kks/clusters/{clusterKrn}/node-groups
GET /v1/kks/clusters/{clusterKrn}/node-groups HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Success
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
nodegroupKrnstringRequired
Responses
200
Success
No content
get/v1/kks/clusters/{clusterKrn}/node-groups/{nodegroupKrn}
GET /v1/kks/clusters/{clusterKrn}/node-groups/{nodegroupKrn} HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Success
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Responses
200
Success
No content
get/v1/kks/clusters/{clusterKrn}/addons
GET /v1/kks/clusters/{clusterKrn}/addons HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200
Success
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Responses
204
Deleted
No content
delete/v1/kks/clusters/{clusterKrn}
DELETE /v1/kks/clusters/{clusterKrn} HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
204
Deleted
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
nodegroupKrnstringRequired
Responses
204
Deleted
No content
delete/v1/kks/clusters/{clusterKrn}/node-groups/{nodegroupKrn}
DELETE /v1/kks/clusters/{clusterKrn}/node-groups/{nodegroupKrn} HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
204
Deleted
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
addonKrnstringRequired
Responses
204
Deleted
No content
delete/v1/kks/clusters/{clusterKrn}/addons/{addonKrn}
DELETE /v1/kks/clusters/{clusterKrn}/addons/{addonKrn} HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
204
Deleted
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
Body
versionstringOptional
Responses
200
Upgrade initiated
No content
post/v1/kks/clusters/{clusterKrn}/updates
POST /v1/kks/clusters/{clusterKrn}/updates HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"version": "text"
}200
Upgrade initiated
No content
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
clusterKrnstringRequired
nodegroupKrnstringRequired
Body
Responses
200
Updated
No content
put/v1/kks/clusters/{clusterKrn}/node-groups/{nodegroupKrn}
PUT /v1/kks/clusters/{clusterKrn}/node-groups/{nodegroupKrn} HTTP/1.1
Host: 10.230.150.171
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 59
{
"scalingConfig": {
"minSize": 1,
"maxSize": 1,
"desiredSize": 1
}
}200
Updated
No content
Last updated
Was this helpful?

