---
title: "POST /v1/{+name}:setAddons"
method: POST
path: "/v1/{+name}:setAddons"
tags: ["projects"]
---

# POST /v1/{+name}:setAddons

`POST /v1/{+name}:setAddons`

Sets the addons for a specific cluster.

## Path parameters

- `name` string, required

## Request body

- SetAddonsConfigRequest — SetAddonsConfigRequest sets the addons associated with the cluster.
  - `zone` string — Deprecated. The name of the Google Compute Engine [zone](https://cloud.google.com/compute/docs/zones#available) in which the cluster resides. This field has been deprecated and replaced by the name field.
  - `addonsConfig` AddonsConfig — Configuration for the addons that can be automatically spun up in the cluster, enabling additional functionality.
    - `configConnectorConfig` ConfigConnectorConfig — Configuration options for the Config Connector add-on.
      - `enabled` boolean — Whether Cloud Connector is enabled for this cluster.
    - `gcpFilestoreCsiDriverConfig` GcpFilestoreCsiDriverConfig — Configuration for the Filestore CSI driver.
      - `enabled` boolean — Whether the Filestore CSI driver is enabled for this cluster.
    - `kubernetesDashboard` KubernetesDashboard — Configuration for the Kubernetes Dashboard.
      - `disabled` boolean — Whether the Kubernetes Dashboard is enabled for this cluster.
    - `statefulHaConfig` StatefulHAConfig — Configuration for the Stateful HA add-on.
      - `enabled` boolean — Whether the Stateful HA add-on is enabled for this cluster.
    - `slurmOperatorConfig` SlurmOperatorConfig — Configuration for the Slurm Operator.
      - `enabled` boolean — When enabled, it runs a Slurm Operator that manages the set of compute pods for Slurm Cluster.
    - `nodeReadinessConfig` NodeReadinessConfig — Configuration for the GKE Node Readiness Controller.
      - `enabled` boolean — Optional. Whether the GKE Node Readiness Controller is enabled for this cluster.
    - `agentSandboxConfig` AgentSandboxConfig — Configuration for the AgentSandbox addon.
      - `enabled` boolean — Optional. Whether AgentSandbox is enabled for this cluster.
    - `horizontalPodAutoscaling` HorizontalPodAutoscaling — Configuration options for the horizontal pod autoscaling feature, which increases or decreases the number of replica pods a replication controller has based on the resource usage of the existing pods.
      - `disabled` boolean — Whether the Horizontal Pod Autoscaling feature is enabled in the cluster. When enabled, it ensures that metrics are collected into Stackdriver Monitoring.
    - `gkeBackupAgentConfig` GkeBackupAgentConfig — Configuration for the Backup for GKE Agent.
      - `enabled` boolean — Whether the Backup for GKE agent is enabled for this cluster.
    - `networkPolicyConfig` NetworkPolicyConfig — Configuration for NetworkPolicy. This only tracks whether the addon is enabled or not on the Master, it does not track whether network policy is enabled for the nodes.
      - `disabled` boolean — Whether NetworkPolicy is enabled for this cluster.
    - `lustreCsiDriverConfig` LustreCsiDriverConfig — Configuration for the Lustre CSI driver.
      - `enabled` boolean — Whether the Lustre CSI driver is enabled for this cluster.
      - `enableLegacyLustrePort` boolean — If set to true, the Lustre CSI driver will install Lustre kernel modules using port 6988. This serves as a workaround for a port conflict with the gke-metadata-server. This field is required ONLY under the following conditions: 1. The GKE node version is older than 1.33.2-gke.4655000. 2. You're connecting to a Lustre instance that has the 'gke-support-enabled' flag. Deprecated: This flag is no longer required as of GKE node version 1.33.2-gke.4655000, unless you are connecting to a Lustre instance that has the `gke-support-enabled` flag.
      - `disableMultiNic` boolean — When set to true, this disables multi-NIC support for the Lustre CSI driver. By default, GKE enables multi-NIC support, which allows the Lustre CSI driver to automatically detect and configure all suitable network interfaces on a node to maximize I/O performance for demanding workloads.
    - `cloudRunConfig` CloudRunConfig — Configuration options for the Cloud Run feature.
      - `disabled` boolean — Whether Cloud Run addon is enabled for this cluster.
      - `loadBalancerType` 'LOAD_BALANCER_TYPE_UNSPECIFIED' | 'LOAD_BALANCER_TYPE_EXTERNAL' | 'LOAD_BALANCER_TYPE_INTERNAL' — Which load balancer type is installed for Cloud Run.
    - `gcePersistentDiskCsiDriverConfig` GcePersistentDiskCsiDriverConfig — Configuration for the Compute Engine PD CSI driver.
      - `enabled` boolean — Whether the Compute Engine PD CSI driver is enabled for this cluster.
    - `httpLoadBalancing` HttpLoadBalancing — Configuration options for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster.
      - `disabled` boolean — Whether the HTTP Load Balancing controller is enabled in the cluster. When enabled, it runs a small pod in the cluster that manages the load balancers.
    - `parallelstoreCsiDriverConfig` ParallelstoreCsiDriverConfig — Configuration for the Cloud Storage Parallelstore CSI driver.
      - `enabled` boolean — Whether the Cloud Storage Parallelstore CSI driver is enabled for this cluster.
    - `rayOperatorConfig` RayOperatorConfig — Configuration options for the Ray Operator add-on.
      - `enabled` boolean — Whether the Ray Operator addon is enabled for this cluster.
      - `rayClusterMonitoringConfig` RayClusterMonitoringConfig — RayClusterMonitoringConfig specifies monitoring configuration for Ray clusters.
        - `enabled` boolean — Enable metrics collection for Ray clusters.
      - `rayClusterLoggingConfig` RayClusterLoggingConfig — RayClusterLoggingConfig specifies configuration of Ray logging.
        - `enabled` boolean — Enable log collection for Ray clusters.
    - `sliceControllerConfig` SliceControllerConfig — Configuration for the Slice Controller.
      - `enabled` boolean — Optional. Indicates whether Slice Controller is enabled in the cluster.
    - `highScaleCheckpointingConfig` HighScaleCheckpointingConfig — Configuration for the High Scale Checkpointing.
      - `enabled` boolean — Whether the High Scale Checkpointing is enabled for this cluster.
    - `dnsCacheConfig` DnsCacheConfig — Configuration for NodeLocal DNSCache
      - `enabled` boolean — Whether NodeLocal DNSCache is enabled for this cluster.
    - `gcsFuseCsiDriverConfig` GcsFuseCsiDriverConfig — Configuration for the Cloud Storage Fuse CSI driver.
      - `enabled` boolean — Whether the Cloud Storage Fuse CSI driver is enabled for this cluster.
    - `podSnapshotConfig` PodSnapshotConfig — PodSnapshotConfig is the configuration for GKE Pod Snapshots feature.
      - `enabled` boolean — Whether or not the Pod Snapshots feature is enabled.
  - `projectId` string — Deprecated. The Google Developers Console [project ID or project number](https://cloud.google.com/resource-manager/docs/creating-managing-projects). This field has been deprecated and replaced by the name field.
  - `clusterId` string — Deprecated. The name of the cluster to upgrade. This field has been deprecated and replaced by the name field.
  - `name` string — The name (project, location, cluster) of the cluster to set addons. Specified in the format `projects/*/locations/*/clusters/*`.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/container.md) · [All operations](https://skmtc.net/google/apis/container/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/container/revisions/f20e7f9e2240/schema)
