Class: Google::Apis::ContainerV1::LinuxNodeConfig
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::LinuxNodeConfig
- 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
Parameters that can be configured on Linux nodes.
Instance Attribute Summary collapse
-
#cgroup_mode ⇒ String
cgroup_mode specifies the cgroup mode to be used on the node.
-
#hugepages ⇒ Google::Apis::ContainerV1::HugepagesConfig
Hugepages amount in both 2m and 1g size Corresponds to the JSON property
hugepages
. -
#sysctls ⇒ Hash<String,String>
The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LinuxNodeConfig
constructor
A new instance of LinuxNodeConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LinuxNodeConfig
Returns a new instance of LinuxNodeConfig.
3266 3267 3268 |
# File 'lib/google/apis/container_v1/classes.rb', line 3266 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cgroup_mode ⇒ String
cgroup_mode specifies the cgroup mode to be used on the node.
Corresponds to the JSON property cgroupMode
3250 3251 3252 |
# File 'lib/google/apis/container_v1/classes.rb', line 3250 def cgroup_mode @cgroup_mode end |
#hugepages ⇒ Google::Apis::ContainerV1::HugepagesConfig
Hugepages amount in both 2m and 1g size
Corresponds to the JSON property hugepages
3255 3256 3257 |
# File 'lib/google/apis/container_v1/classes.rb', line 3255 def hugepages @hugepages end |
#sysctls ⇒ Hash<String,String>
The Linux kernel parameters to be applied to the nodes and all pods running on
the nodes. The following parameters are supported. net.core.busy_poll net.core.
busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default
net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.
ipv4.tcp_wmem net.ipv4.tcp_tw_reuse
Corresponds to the JSON property sysctls
3264 3265 3266 |
# File 'lib/google/apis/container_v1/classes.rb', line 3264 def sysctls @sysctls end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3271 3272 3273 3274 3275 |
# File 'lib/google/apis/container_v1/classes.rb', line 3271 def update!(**args) @cgroup_mode = args[:cgroup_mode] if args.key?(:cgroup_mode) @hugepages = args[:hugepages] if args.key?(:hugepages) @sysctls = args[:sysctls] if args.key?(:sysctls) end |