Class: Google::Apis::ContainerV1::MemoryManager

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/container_v1/classes.rb,
lib/google/apis/container_v1/representations.rb,
lib/google/apis/container_v1/representations.rb

Overview

The option enables the Kubernetes NUMA-aware Memory Manager feature. Detailed description about the feature can be found here.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MemoryManager

Returns a new instance of MemoryManager.



4718
4719
4720
# File 'lib/google/apis/container_v1/classes.rb', line 4718

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#policyString

Controls the memory management policy on the Node. See https://kubernetes.io/ docs/tasks/administer-cluster/memory-manager/#policies The following values are allowed. * "none" * "static" The default value is 'none' if unspecified. Corresponds to the JSON property policy

Returns:

  • (String)


4716
4717
4718
# File 'lib/google/apis/container_v1/classes.rb', line 4716

def policy
  @policy
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4723
4724
4725
# File 'lib/google/apis/container_v1/classes.rb', line 4723

def update!(**args)
  @policy = args[:policy] if args.key?(:policy)
end