Generated from protobuf message google.container.v1.TopologyManager
Namespace
Google \ Cloud \ Container \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ policy
string
Configures the strategy for resource alignment. Allowed values are: * * none: the default policy, and does not perform any topology alignment. * * restricted: the topology manager stores the preferred NUMA node affinity for the container, and will reject the pod if the affinity if not preferred. * * best-effort: the topology manager stores the preferred NUMA node affinity for the container. If the affinity is not preferred, the topology manager will admit the pod to the node anyway. * * single-numa-node: the topology manager determines if the single NUMA node affinity is possible. If it is, Topology Manager will store this and the Hint Providers can then use this information when making the resource allocation decision. If, however, this is not possible then the Topology Manager will reject the pod from the node. This will result in a pod in a Terminated state with a pod admission failure. The default policy value is 'none' if unspecified. Details about each strategy can be found here.
none: the default policy, and does not perform any topology alignment.
restricted: the topology manager stores the preferred NUMA node affinity
for the container, and will reject the pod if the affinity if not
preferred.
best-effort: the topology manager stores the preferred NUMA node affinity
for the container. If the affinity is not preferred, the topology manager
will admit the pod to the node anyway.
single-numa-node: the topology manager determines if the single NUMA node
affinity is possible. If it is, Topology Manager will store this and the
Hint Providers can then use this information when making the resource
allocation decision. If, however, this is not possible then the
Topology Manager will reject the pod from the node. This will result in a
pod in a Terminated state with a pod admission failure.
The default policy value is 'none' if unspecified.
Details about each strategy can be found
here.
Returns
Type
Description
string
setPolicy
Configures the strategy for resource alignment.
Allowed values are:
none: the default policy, and does not perform any topology alignment.
restricted: the topology manager stores the preferred NUMA node affinity
for the container, and will reject the pod if the affinity if not
preferred.
best-effort: the topology manager stores the preferred NUMA node affinity
for the container. If the affinity is not preferred, the topology manager
will admit the pod to the node anyway.
single-numa-node: the topology manager determines if the single NUMA node
affinity is possible. If it is, Topology Manager will store this and the
Hint Providers can then use this information when making the resource
allocation decision. If, however, this is not possible then the
Topology Manager will reject the pod from the node. This will result in a
pod in a Terminated state with a pod admission failure.
The default policy value is 'none' if unspecified.
Details about each strategy can be found
here.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getScope
The Topology Manager aligns resources in following scopes:
container
pod
The default scope is 'container' if unspecified.
[[["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-08-28 UTC."],[],[],null,["# Google Cloud Container V1 Client - Class TopologyManager (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest/V1.TopologyManager)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0/V1.TopologyManager)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4/V1.TopologyManager)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1/V1.TopologyManager)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0/V1.TopologyManager)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0/V1.TopologyManager)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0/V1.TopologyManager)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0/V1.TopologyManager)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0/V1.TopologyManager)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3/V1.TopologyManager)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0/V1.TopologyManager)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0/V1.TopologyManager)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0/V1.TopologyManager)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1/V1.TopologyManager)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0/V1.TopologyManager)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0/V1.TopologyManager)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0/V1.TopologyManager)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1/V1.TopologyManager)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0/V1.TopologyManager)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0/V1.TopologyManager)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0/V1.TopologyManager)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1/V1.TopologyManager)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1/V1.TopologyManager)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3/V1.TopologyManager)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1/V1.TopologyManager) \nReference documentation and code samples for the Google Cloud Container V1 Client class TopologyManager.\n\nTopologyManager defines the configuration options for Topology Manager\nfeature. See\n\u003chttps://kubernetes.io/docs/tasks/administer-cluster/topology-manager/\u003e\n\nGenerated from protobuf message `google.container.v1.TopologyManager`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Container \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPolicy\n\nConfigures the strategy for resource alignment.\n\nAllowed values are:\n\n- none: the default policy, and does not perform any topology alignment.\n- restricted: the topology manager stores the preferred NUMA node affinity for the container, and will reject the pod if the affinity if not preferred.\n- best-effort: the topology manager stores the preferred NUMA node affinity for the container. If the affinity is not preferred, the topology manager will admit the pod to the node anyway.\n- single-numa-node: the topology manager determines if the single NUMA node affinity is possible. If it is, Topology Manager will store this and the Hint Providers can then use this information when making the resource allocation decision. If, however, this is not possible then the Topology Manager will reject the pod from the node. This will result in a pod in a Terminated state with a pod admission failure. The default policy value is 'none' if unspecified. Details about each strategy can be found [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).\n\n### setPolicy\n\nConfigures the strategy for resource alignment.\n\nAllowed values are:\n\n- none: the default policy, and does not perform any topology alignment.\n- restricted: the topology manager stores the preferred NUMA node affinity for the container, and will reject the pod if the affinity if not preferred.\n- best-effort: the topology manager stores the preferred NUMA node affinity for the container. If the affinity is not preferred, the topology manager will admit the pod to the node anyway.\n- single-numa-node: the topology manager determines if the single NUMA node affinity is possible. If it is, Topology Manager will store this and the Hint Providers can then use this information when making the resource allocation decision. If, however, this is not possible then the Topology Manager will reject the pod from the node. This will result in a pod in a Terminated state with a pod admission failure. The default policy value is 'none' if unspecified. Details about each strategy can be found [here](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-policies).\n\n### getScope\n\nThe Topology Manager aligns resources in following scopes:\n\n- container\n- pod The default scope is 'container' if unspecified.\n\nSee\n\u003chttps://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes\u003e\n\n### setScope\n\nThe Topology Manager aligns resources in following scopes:\n\n- container\n- pod The default scope is 'container' if unspecified.\n\nSee\n\u003chttps://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes\u003e"]]