---
title: "Updates a Kubernetes cluster in the project and returns the async operation."
method: PATCH
path: "/projects/{project_id}/kubernetes/clusters/{cluster_id}"
tags: ["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_id` string, required
- `cluster_id` string, required

## Request body

- KubernetesClusterPatchRequest
  - `apiserver_extra_args` object — 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_args` object — 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_args` object, required — New arguments for the kubectl oidc-login plugin.
  - `scheduler_extra_args` object — 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.

## Response `200`

- AsyncOperationResponse
  - `operation` Operation, required — Individual resources that use Operations should populate the `metadata` field with resource-specific information.
    - `completed_at` string, required
    - `metadata` string, required
    - `operation_id` string, required
    - `result` string
    - `started_at` string, required
    - `state` 'IN_PROGRESS' | 'SUCCEEDED' | 'FAILED', required

## Other responses

- `401` — Error Authentication Failed
- `403` — Error Permissions
- `500` — Error Internal Server

---

[API](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway.md) · [All operations](https://skmtc.net/crusoecloud/apis/crusoe-cloud-api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/crusoecloud/crusoe-cloud-api-gateway/versions/a3fd2dedc72b/schema)
