PUT/v2/kubernetes/clusters/{cluster_id}

Update a Kubernetes Cluster

To update a Kubernetes cluster, send a PUT request to /v2/kubernetes/clusters/$K8S_CLUSTER_ID and specify one or more of the attributes below.

1 parameter · 20 body fields
cluster_idstringrequired
A unique ID that can be used to reference a Kubernetes cluster.
namestringrequired
A human-readable name for a Kubernetes cluster.
tagsarray<string>optional
An array of tags applied to the Kubernetes cluster. All clusters are automatically tagged `k8s` and `k8s:$K8S_CLUSTER_ID`.
maintenance_policyobjectoptional
An object specifying the maintenance window policy for the Kubernetes cluster.
auto_upgradebooleanoptional
A boolean value indicating whether the cluster will be automatically upgraded to new patch releases during its maintenance window.
Default:false
surge_upgradebooleanoptional
A boolean value indicating whether surge upgrade is enabled/disabled for the cluster. Surge upgrade makes cluster upgrades fast and reliable by bringing up new nodes before destroying the outdated nodes.
Default:false
habooleanoptional
A boolean value indicating whether the control plane is run in a highly available configuration in the cluster. Highly available control planes incur less downtime. The property cannot be disabled. When omitted on create, the default is version-dependent; for DOKS 1.36.0 and later, the default is true; for earlier versions, the default is false.
gpu_operator_readybooleanoptional
A boolean value indicating whether GPU nodes in the cluster are launched with images that do not include pre-installed GPU drivers, allowing GPU drivers to be managed by a GPU operator instead. Mutually exclusive with other GPU-related cluster options, such as `nvidia_gpu_dra_driver` and `amd_gpu_dra_driver`. When omitted, the current value is left unchanged.
control_plane_firewallobjectoptional
An object specifying the control plane firewall for the Kubernetes cluster. Control plane firewall is in early availability (invite only).
cluster_autoscaler_configurationobjectoptional
An object specifying custom cluster autoscaler configuration.
ssoobjectoptional
An object specifying Single Sign-On (SSO) configuration for the Kubernetes cluster.
routing_agentobjectoptional
An object specifying whether the routing-agent component should be enabled for the Kubernetes cluster.
p2p_oci_registry_pluginobjectoptional
An object specifying whether the Peer-to-peer OCI registry component should be enabled for the Kubernetes cluster.
nfs_csi_pluginobjectoptional
An object specifying whether the NFS CSI plugin should be enabled for the Kubernetes cluster.
amd_gpu_device_pluginobjectoptional
An object specifying whether the AMD GPU Device Plugin should be enabled in the Kubernetes cluster. It's enabled by default for clusters with an AMD GPU node pool.
amd_gpu_device_metrics_exporter_pluginobjectoptional
An object specifying whether the AMD Device Metrics Exporter should be enabled in the Kubernetes cluster.
nvidia_gpu_device_pluginobjectoptional
An object specifying whether the Nvidia GPU Device Plugin should be enabled in the Kubernetes cluster. It's enabled by default for clusters with an Nvidia GPU node pool.
nvidia_gpu_dra_driverobjectoptional
An object specifying whether the NVIDIA GPU DRA Driver should be enabled in the Kubernetes cluster. Mutually exclusive with `nvidia_gpu_device_plugin`.
amd_gpu_dra_driverobjectoptional
An object specifying whether the AMD GPU DRA Driver should be enabled in the Kubernetes cluster. Mutually exclusive with `amd_gpu_device_plugin`.
rdma_shared_dev_pluginobjectoptional
An object specifying whether the RDMA shared device plugin should be enabled in the Kubernetes cluster.
coredns_autoscalerobjectoptional
An object specifying whether the Cluster Proportional Autoscaler (CPA) add-on for CoreDNS should be enabled for the Kubernetes cluster.

6 status codes
202The response will be a JSON object with a key called `kubernetes_cluster`. The value of this will be an object containing the standard attributes of a Kubernetes cluster.
kubernetes_clusterobjectoptional
401Authentication failed due to invalid credentials.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
404The resource was not found.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
429The API rate limit has been exceeded.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
500There was a server error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.
defaultThere was an unexpected error.
idstringrequired
A short identifier corresponding to the HTTP status code returned. For example, the ID for a response returning a 404 status code would be "not_found."
messagestringrequired
A message providing additional information about the error, including details to help resolve it when possible.
request_idstringoptional
Optionally, some endpoints may include a request ID that should be provided when reporting bugs or opening support tickets to help identify the issue.

Error handling

A 401 is returned: Authentication failed due to invalid credentials. A 404 is returned: The resource was not found. A 429 is returned: The API rate limit has been exceeded. A 500 is returned: There was a server error. Any other status is an error: There was an unexpected error.