Google Cloud Container V1 Client - Class Mode (2.2.1)

Reference documentation and code samples for the Google Cloud Container V1 Client class Mode.

Mode is the configuration for how to expose metadata to workloads runningon the node.

Protobuf typegoogle.container.v1.WorkloadMetadataConfig.Mode

Namespace

Google \ Cloud \ Container \ V1 \ WorkloadMetadataConfig

Methods

static::name

Parameter
NameDescription
valuemixed

static::value

Parameter
NameDescription
namemixed

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 exposesa metadata API to workloads that is compatible with the V1 ComputeMetadata APIs exposed by the Compute Engine and App Engine MetadataServers. This feature can only be enabled if Workload Identity is enabledat the cluster level.

Generated from protobuf enumGKE_METADATA = 2;

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.