Google \ Cloud \ Container \ V1 \ WorkloadMetadataConfig
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
MODE_UNSPECIFIED
Value: 0
Not set.
Generated from protobuf enumMODE_UNSPECIFIED = 0;
GCE_METADATA
Value: 1
Expose all Compute Engine metadata to pods.
Generated from protobuf enumGCE_METADATA = 1;
GKE_METADATA
Value: 2
Run the GKE Metadata Server on this node. The GKE Metadata Server exposes
a metadata API to workloads that is compatible with the V1 Compute
Metadata APIs exposed by the Compute Engine and App Engine Metadata
Servers. This feature can only be enabled if Workload Identity is enabled
at the cluster level.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Container V1 Client - Class Mode (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest/V1.WorkloadMetadataConfig.Mode)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0/V1.WorkloadMetadataConfig.Mode)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4/V1.WorkloadMetadataConfig.Mode)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1/V1.WorkloadMetadataConfig.Mode)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0/V1.WorkloadMetadataConfig.Mode)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0/V1.WorkloadMetadataConfig.Mode)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0/V1.WorkloadMetadataConfig.Mode)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0/V1.WorkloadMetadataConfig.Mode)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0/V1.WorkloadMetadataConfig.Mode)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3/V1.WorkloadMetadataConfig.Mode)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0/V1.WorkloadMetadataConfig.Mode)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0/V1.WorkloadMetadataConfig.Mode)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0/V1.WorkloadMetadataConfig.Mode)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1/V1.WorkloadMetadataConfig.Mode)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0/V1.WorkloadMetadataConfig.Mode)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0/V1.WorkloadMetadataConfig.Mode)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0/V1.WorkloadMetadataConfig.Mode)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1/V1.WorkloadMetadataConfig.Mode)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0/V1.WorkloadMetadataConfig.Mode)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0/V1.WorkloadMetadataConfig.Mode)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0/V1.WorkloadMetadataConfig.Mode)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1/V1.WorkloadMetadataConfig.Mode)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1/V1.WorkloadMetadataConfig.Mode)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3/V1.WorkloadMetadataConfig.Mode)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1/V1.WorkloadMetadataConfig.Mode) \nReference documentation and code samples for the Google Cloud Container V1 Client class Mode.\n\nMode is the configuration for how to expose metadata to workloads running\non the node.\n\nProtobuf type `google.container.v1.WorkloadMetadataConfig.Mode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Container \\\\ V1 \\\\ WorkloadMetadataConfig\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### MODE_UNSPECIFIED\n\n Value: 0\n\nNot set.\n\nGenerated from protobuf enum `MODE_UNSPECIFIED = 0;`\n\n### GCE_METADATA\n\n Value: 1\n\nExpose all Compute Engine metadata to pods.\n\nGenerated from protobuf enum `GCE_METADATA = 1;`\n\n### GKE_METADATA\n\n Value: 2\n\nRun the GKE Metadata Server on this node. The GKE Metadata Server exposes\na metadata API to workloads that is compatible with the V1 Compute\nMetadata APIs exposed by the Compute Engine and App Engine Metadata\nServers. This feature can only be enabled if Workload Identity is enabled\nat the cluster level.\n\nGenerated from protobuf enum `GKE_METADATA = 2;`"]]