Class: Google::Apis::GkeonpremV1::BareMetalKubeletConfig
- Inherits:
-
Object
- Object
- Google::Apis::GkeonpremV1::BareMetalKubeletConfig
- 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
-
#registry_burst ⇒ Fixnum
The maximum size of bursty pulls, temporarily allows pulls to burst to this number, while still not exceeding registry_pull_qps.
-
#registry_pull_qps ⇒ Fixnum
The limit of registry pulls per second.
-
#serialize_image_pulls_disabled ⇒ Boolean
(also: #serialize_image_pulls_disabled?)
Prevents the Kubelet from pulling multiple images at a time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BareMetalKubeletConfig
constructor
A new instance of BareMetalKubeletConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ BareMetalKubeletConfig
Returns a new instance of BareMetalKubeletConfig.
1273 1274 1275 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#registry_burst ⇒ Fixnum
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
1255 1256 1257 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1255 def registry_burst @registry_burst end |
#registry_pull_qps ⇒ Fixnum
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
1262 1263 1264 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1262 def registry_pull_qps @registry_pull_qps end |
#serialize_image_pulls_disabled ⇒ Boolean 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
1270 1271 1272 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1270 def serialize_image_pulls_disabled @serialize_image_pulls_disabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1278 1279 1280 1281 1282 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1278 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 |