v1

latestSwagger 2.02026-08-04232286653.5 KB
Kubernetes Clusters

Updates a Kubernetes cluster in the project and returns the async operation.

patch/projects/{project_id}/kubernetes/clusters/{cluster_id}

Path parameters

project_idstring required

ID of the project that owns the cluster.

cluster_idstring required

ID of the cluster.

Request body

apiserver_extra_argsobject

New extra arguments to pass to the kube-apiserver control plane component. If absent, existing args are preserved. If present but empty, args are cleared.

configuration'ha'

Configuration setting is deprecated, defaults to HA configuration.

controller_manager_extra_argsobject

New extra arguments to pass to the kube-controller-manager control plane component. If absent, existing args are preserved. If present but empty, args are cleared.

kubelogin_argsobject required

New arguments for the kubectl oidc-login plugin.

scheduler_extra_argsobject

New extra arguments to pass to the kube-scheduler control plane component. If absent, existing args are preserved. If present but empty, args are cleared.

Example request

{
  "apiserver_extra_args": {
    "audit-log-maxage": "30"
  },
  "configuration": "ha",
  "controller_manager_extra_args": {
    "bind-address": "0.0.0.0"
  },
  "kubelogin_args": {
    "force-refresh": "",
    "oidc-extra-scope": "email groups"
  },
  "scheduler_extra_args": {
    "bind-address": "0.0.0.0"
  }
}

Response

Example response

{
  "operation": {
    "completed_at": "2021-12-03T19:59:34Z",
    "metadata": "{}",
    "operation_id": "F6EF489C-086E-458D-B812-7962964A28C9",
    "result": "{}",
    "started_at": "2021-12-03T19:58:34Z",
    "state": "IN_PROGRESS"
  }
}