Google Cloud Container V1 Client - Class CgroupMode (2.2.1)

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

Possible cgroup modes that can be used.

Protobuf typegoogle.container.v1.LinuxNodeConfig.CgroupMode

Namespace

Google \ Cloud \ Container \ V1 \ LinuxNodeConfig

Methods

static::name

Parameter
NameDescription
valuemixed

static::value

Parameter
NameDescription
namemixed

Constants

CGROUP_MODE_UNSPECIFIED

Value: 0

CGROUP_MODE_UNSPECIFIED is when unspecified cgroup configuration is used.

The default for the GKE node OS image will be used.

Generated from protobuf enumCGROUP_MODE_UNSPECIFIED = 0;

CGROUP_MODE_V1

Value: 1

CGROUP_MODE_V1 specifies to use cgroupv1 for the cgroup configuration onthe node image.

Generated from protobuf enumCGROUP_MODE_V1 = 1;

CGROUP_MODE_V2

Value: 2

CGROUP_MODE_V2 specifies to use cgroupv2 for the cgroup configuration onthe node image.

Generated from protobuf enumCGROUP_MODE_V2 = 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.