Class: Google::Apis::GkeonpremV1::BareMetalKubeletConfig

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

Overview

KubeletConfig defines the modifiable kubelet configurations for bare metal machines. Note: this list includes fields supported in GKE (see https://cloud. google.com/kubernetes-engine/docs/how-to/node-system-config#kubelet-options).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalKubeletConfig

Returns a new instance of BareMetalKubeletConfig.



1484
1485
1486
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1484

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

Instance Attribute Details

#registry_burstFixnum

The maximum size of bursty pulls, temporarily allows pulls to burst to this number, while still not exceeding registry_pull_qps. The value must not be a negative number. Updating this field may impact scalability by changing the amount of traffic produced by image pulls. Defaults to 10. Corresponds to the JSON property registryBurst

Returns:

  • (Fixnum)


1466
1467
1468
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1466

def registry_burst
  @registry_burst
end

#registry_pull_qpsFixnum

The limit of registry pulls per second. Setting this value to 0 means no limit. Updating this field may impact scalability by changing the amount of traffic produced by image pulls. Defaults to 5. Corresponds to the JSON property registryPullQps

Returns:

  • (Fixnum)


1473
1474
1475
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1473

def registry_pull_qps
  @registry_pull_qps
end

#serialize_image_pulls_disabledBoolean Also known as: serialize_image_pulls_disabled?

Prevents the Kubelet from pulling multiple images at a time. We recommend not changing the default value on nodes that run docker daemon with version < 1.9 or an Another Union File System (Aufs) storage backend. Issue https://github. com/kubernetes/kubernetes/issues/10959 has more details. Corresponds to the JSON property serializeImagePullsDisabled

Returns:

  • (Boolean)


1481
1482
1483
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1481

def serialize_image_pulls_disabled
  @serialize_image_pulls_disabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1489
1490
1491
1492
1493
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1489

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