Class: Google::Apis::ContainerV1::LinuxNodeConfig

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

Parameters that can be configured on Linux nodes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LinuxNodeConfig

Returns a new instance of LinuxNodeConfig.



2980
2981
2982
# File 'lib/google/apis/container_v1/classes.rb', line 2980

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

Instance Attribute Details

#cgroup_modeString

cgroup_mode specifies the cgroup mode to be used on the node. Corresponds to the JSON property cgroupMode

Returns:

  • (String)


2969
2970
2971
# File 'lib/google/apis/container_v1/classes.rb', line 2969

def cgroup_mode
  @cgroup_mode
end

#sysctlsHash<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

Returns:

  • (Hash<String,String>)


2978
2979
2980
# File 'lib/google/apis/container_v1/classes.rb', line 2978

def sysctls
  @sysctls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2985
2986
2987
2988
# File 'lib/google/apis/container_v1/classes.rb', line 2985

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