# Google Cloud Container V1 Client - Class AddonsConfig (2.10.0)

2.10.0 (latest) 2.9.0 2.8.1 2.7.0 2.6.1 2.5.0 2.4.0 2.3.4 2.2.1 2.1.0 2.0.0 1.33.0 1.32.0 1.31.0 1.30.3 1.24.0 1.23.0 1.22.0 1.21.1 1.20.0 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.0 1.13.1 1.12.1 1.10.3 1.9.1 Reference documentation and code samples for the Google Cloud Container V1 Client class AddonsConfig.

Configuration for the addons that can be automatically spun up in the
cluster, enabling additional functionality.

Generated from protobuf message `google.container.v1.AddonsConfig`

## Namespace

Google \\ Cloud \\ Container \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ http_load_balancing` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HttpLoadBalancing` Configuration for the HTTP (L7) load balancing controller addon, which makes it easy to set up HTTP load balancers for services in a cluster. |
| `↳ horizontal_pod_autoscaling` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HorizontalPodAutoscaling` Configuration 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. |
| `↳ kubernetes_dashboard` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.KubernetesDashboard` Configuration for the Kubernetes Dashboard. This addon is deprecated, and will be disabled in 1.15. It is recommended to use the Cloud Console to manage and monitor your Kubernetes clusters, workloads and applications. For more information, see: <https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards> |
| `↳ network_policy_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.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. |
| `↳ cloud_run_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.CloudRunConfig` Configuration for the Cloud Run addon, which allows the user to use a managed Knative service. |
| `↳ dns_cache_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DnsCacheConfig` Configuration for NodeLocalDNS, a dns cache running on cluster nodes |
| `↳ config_connector_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ConfigConnectorConfig` Configuration for the ConfigConnector add-on, a Kubernetes extension to manage hosted Google Cloud services through the Kubernetes API. |
| `↳ gce_persistent_disk_csi_driver_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcePersistentDiskCsiDriverConfig` Configuration for the Compute Engine Persistent Disk CSI driver. |
| `↳ gcp_filestore_csi_driver_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcpFilestoreCsiDriverConfig` Configuration for the Filestore CSI driver. |
| `↳ gke_backup_agent_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GkeBackupAgentConfig` Configuration for the Backup for GKE agent addon. |
| `↳ gcs_fuse_csi_driver_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcsFuseCsiDriverConfig` Configuration for the Cloud Storage Fuse CSI driver. |
| `↳ stateful_ha_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.StatefulHAConfig` Optional. Configuration for the StatefulHA add-on. |
| `↳ parallelstore_csi_driver_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ParallelstoreCsiDriverConfig` Configuration for the Cloud Storage Parallelstore CSI driver. |
| `↳ ray_operator_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.RayOperatorConfig` Optional. Configuration for Ray Operator addon. |
| `↳ high_scale_checkpointing_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HighScaleCheckpointingConfig` Configuration for the High Scale Checkpointing add-on. |
| `↳ lustre_csi_driver_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.LustreCsiDriverConfig` Configuration for the Lustre CSI driver. |
| `↳ pod_snapshot_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.PodSnapshotConfig` Optional. Configuration for the Pod Snapshot feature. |
| `↳ slurm_operator_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.SlurmOperatorConfig` Configuration for the Slurm Operator. |
| `↳ slice_controller_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.SliceControllerConfig` Optional. Configuration for the slice controller add-on. |
| `↳ agent_sandbox_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.AgentSandboxConfig` Optional. Configuration for the AgentSandbox addon. |
| `↳ node_readiness_config` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeReadinessConfig` Optional. Configuration for NodeReadinessController add-on. |

### getHttpLoadBalancing

Configuration for the HTTP (L7) load balancing controller addon, which
makes it easy to set up HTTP load balancers for services in a cluster.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HttpLoadBalancing|null` |   |

### hasHttpLoadBalancing

### clearHttpLoadBalancing

### setHttpLoadBalancing

Configuration for the HTTP (L7) load balancing controller addon, which
makes it easy to set up HTTP load balancers for services in a cluster.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HttpLoadBalancing` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHorizontalPodAutoscaling

Configuration 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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HorizontalPodAutoscaling|null` |   |

### hasHorizontalPodAutoscaling

### clearHorizontalPodAutoscaling

### setHorizontalPodAutoscaling

Configuration 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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HorizontalPodAutoscaling` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getKubernetesDashboard

Configuration for the Kubernetes Dashboard.

This addon is deprecated, and will be disabled in 1.15. It is recommended
to use the Cloud Console to manage and monitor your Kubernetes clusters,
workloads and applications. For more information, see:
<https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards>

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.KubernetesDashboard|null` |   |

### hasKubernetesDashboard

### clearKubernetesDashboard

### setKubernetesDashboard

Configuration for the Kubernetes Dashboard.

This addon is deprecated, and will be disabled in 1.15. It is recommended
to use the Cloud Console to manage and monitor your Kubernetes clusters,
workloads and applications. For more information, see:
<https://cloud.google.com/kubernetes-engine/docs/concepts/dashboards>

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.KubernetesDashboard` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNetworkPolicyConfig

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NetworkPolicyConfig|null` |   |

### hasNetworkPolicyConfig

### clearNetworkPolicyConfig

### setNetworkPolicyConfig

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NetworkPolicyConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCloudRunConfig

Configuration for the Cloud Run addon, which allows the user to use a
managed Knative service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.CloudRunConfig|null` |   |

### hasCloudRunConfig

### clearCloudRunConfig

### setCloudRunConfig

Configuration for the Cloud Run addon, which allows the user to use a
managed Knative service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.CloudRunConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDnsCacheConfig

Configuration for NodeLocalDNS, a dns cache running on cluster nodes

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DnsCacheConfig|null` |   |

### hasDnsCacheConfig

### clearDnsCacheConfig

### setDnsCacheConfig

Configuration for NodeLocalDNS, a dns cache running on cluster nodes

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.DnsCacheConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getConfigConnectorConfig

Configuration for the ConfigConnector add-on, a Kubernetes
extension to manage hosted Google Cloud services through the Kubernetes
API.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ConfigConnectorConfig|null` |   |

### hasConfigConnectorConfig

### clearConfigConnectorConfig

### setConfigConnectorConfig

Configuration for the ConfigConnector add-on, a Kubernetes
extension to manage hosted Google Cloud services through the Kubernetes
API.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ConfigConnectorConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcePersistentDiskCsiDriverConfig

Configuration for the Compute Engine Persistent Disk CSI driver.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcePersistentDiskCsiDriverConfig|null` |   |

### hasGcePersistentDiskCsiDriverConfig

### clearGcePersistentDiskCsiDriverConfig

### setGcePersistentDiskCsiDriverConfig

Configuration for the Compute Engine Persistent Disk CSI driver.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcePersistentDiskCsiDriverConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcpFilestoreCsiDriverConfig

Configuration for the Filestore CSI driver.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcpFilestoreCsiDriverConfig|null` |   |

### hasGcpFilestoreCsiDriverConfig

### clearGcpFilestoreCsiDriverConfig

### setGcpFilestoreCsiDriverConfig

Configuration for the Filestore CSI driver.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcpFilestoreCsiDriverConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGkeBackupAgentConfig

Configuration for the Backup for GKE agent addon.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GkeBackupAgentConfig|null` |   |

### hasGkeBackupAgentConfig

### clearGkeBackupAgentConfig

### setGkeBackupAgentConfig

Configuration for the Backup for GKE agent addon.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GkeBackupAgentConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGcsFuseCsiDriverConfig

Configuration for the Cloud Storage Fuse CSI driver.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcsFuseCsiDriverConfig|null` |   |

### hasGcsFuseCsiDriverConfig

### clearGcsFuseCsiDriverConfig

### setGcsFuseCsiDriverConfig

Configuration for the Cloud Storage Fuse CSI driver.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.GcsFuseCsiDriverConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStatefulHaConfig

Optional. Configuration for the StatefulHA add-on.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.StatefulHAConfig|null` |   |

### hasStatefulHaConfig

### clearStatefulHaConfig

### setStatefulHaConfig

Optional. Configuration for the StatefulHA add-on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.StatefulHAConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParallelstoreCsiDriverConfig

Configuration for the Cloud Storage Parallelstore CSI driver.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ParallelstoreCsiDriverConfig|null` |   |

### hasParallelstoreCsiDriverConfig

### clearParallelstoreCsiDriverConfig

### setParallelstoreCsiDriverConfig

Configuration for the Cloud Storage Parallelstore CSI driver.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.ParallelstoreCsiDriverConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRayOperatorConfig

Optional. Configuration for Ray Operator addon.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.RayOperatorConfig|null` |   |

### hasRayOperatorConfig

### clearRayOperatorConfig

### setRayOperatorConfig

Optional. Configuration for Ray Operator addon.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.RayOperatorConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getHighScaleCheckpointingConfig

Configuration for the High Scale Checkpointing add-on.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HighScaleCheckpointingConfig|null` |   |

### hasHighScaleCheckpointingConfig

### clearHighScaleCheckpointingConfig

### setHighScaleCheckpointingConfig

Configuration for the High Scale Checkpointing add-on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.HighScaleCheckpointingConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLustreCsiDriverConfig

Configuration for the Lustre CSI driver.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.LustreCsiDriverConfig|null` |   |

### hasLustreCsiDriverConfig

### clearLustreCsiDriverConfig

### setLustreCsiDriverConfig

Configuration for the Lustre CSI driver.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.LustreCsiDriverConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPodSnapshotConfig

Optional. Configuration for the Pod Snapshot feature.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.PodSnapshotConfig|null` |   |

### hasPodSnapshotConfig

### clearPodSnapshotConfig

### setPodSnapshotConfig

Optional. Configuration for the Pod Snapshot feature.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.PodSnapshotConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSlurmOperatorConfig

Configuration for the Slurm Operator.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.SlurmOperatorConfig|null` |   |

### hasSlurmOperatorConfig

### clearSlurmOperatorConfig

### setSlurmOperatorConfig

Configuration for the Slurm Operator.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.SlurmOperatorConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSliceControllerConfig

Optional. Configuration for the slice controller add-on.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.SliceControllerConfig|null` |   |

### hasSliceControllerConfig

### clearSliceControllerConfig

### setSliceControllerConfig

Optional. Configuration for the slice controller add-on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.SliceControllerConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAgentSandboxConfig

Optional. Configuration for the AgentSandbox addon.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.AgentSandboxConfig|null` |   |

### hasAgentSandboxConfig

### clearAgentSandboxConfig

### setAgentSandboxConfig

Optional. Configuration for the AgentSandbox addon.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.AgentSandboxConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getNodeReadinessConfig

Optional. Configuration for NodeReadinessController add-on.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeReadinessConfig|null` |   |

### hasNodeReadinessConfig

### clearNodeReadinessConfig

### setNodeReadinessConfig

Optional. Configuration for NodeReadinessController add-on.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-container/latest/V1.NodeReadinessConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |