Kubernetes clusters¶
Generated from the gateway schema. Do not edit.
Queries¶
tenantCluster¶
query { tenantCluster(name: String!): TenantCluster! }
Requires: tenant VIEWER
| Argument | Type | Description |
|---|---|---|
name |
String! |
Returns: TenantCluster!
tenantClusterOptions¶
query { tenantClusterOptions: TenantClusterOptions! }
Requires: tenant VIEWER
Returns: TenantClusterOptions!
tenantClusters¶
query { tenantClusters: TenantClustersResult! }
Requires: tenant VIEWER
Returns: TenantClustersResult!
Mutations¶
addTenantClusterPool¶
mutation { addTenantClusterPool(cluster: String!, pool: TenantClusterPoolInput!): TenantCluster! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
cluster |
String! |
|
pool |
TenantClusterPoolInput! |
Returns: TenantCluster!
createTenantCluster¶
Creates a cluster on the tenant's private network. Returns at once; the cluster is PROVISIONING until its API is up, which takes several minutes.
mutation { createTenantCluster(input: CreateTenantClusterInput!): TenantCluster! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
input |
CreateTenantClusterInput! |
Returns: TenantCluster!
deleteTenantCluster¶
Deletes the cluster, its nodes and everything on them. confirm must repeat the cluster's name.
mutation { deleteTenantCluster(name: String!, confirm: String!): Boolean! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
confirm |
String! |
Returns: Boolean!
removeTenantClusterPool¶
Removes a pool and its nodes; workloads on them are rescheduled where there is room.
mutation { removeTenantClusterPool(cluster: String!, pool: String!): TenantCluster! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
cluster |
String! |
|
pool |
String! |
Returns: TenantCluster!
scaleTenantClusterPool¶
Sets how many nodes a pool has (0 to 20).
mutation { scaleTenantClusterPool(cluster: String!, pool: String!, replicas: Int!): TenantCluster! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
cluster |
String! |
|
pool |
String! |
|
replicas |
Int! |
Returns: TenantCluster!
tenantClusterKubeconfig¶
A kubeconfig for the cluster. EXEC (default) contains no secret: kubectl runs the rso helper, which signs in with the platform account for a fresh token whenever one is needed. SESSION carries a token that expires within the hour. The cluster's administrator kubeconfig is never handed out.
mutation { tenantClusterKubeconfig(name: String!, kind: TenantClusterKubeconfigKind!): String! }
Requires: tenant VIEWER
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
kind |
TenantClusterKubeconfigKind! |
Returns: String!
tenantClusterToken¶
A short-lived token for the caller in this cluster, as an ExecCredential (what kubectl's exec plugin protocol expects). The token's rights follow the caller's permissions at the moment of issue: whoever may change the cluster (editors and admins by default) gets cluster-admin, others read-only. ttlSeconds is 600 to 3600 (default 900). A mutation so that each issue is in the audit log.
mutation { tenantClusterToken(name: String!, ttlSeconds: Int!): TenantClusterToken! }
Requires: tenant VIEWER
| Argument | Type | Description |
|---|---|---|
name |
String! |
|
ttlSeconds |
Int! |
Returns: TenantClusterToken!
upgradeTenantCluster¶
Moves the cluster to a newer version, one minor version at a time. The control plane goes first; the worker pools follow once it is done.
mutation { upgradeTenantCluster(cluster: String!, version: String!): TenantCluster! }
Requires: tenant EDITOR
| Argument | Type | Description |
|---|---|---|
cluster |
String! |
|
version |
String! |
Returns: TenantCluster!