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.
1285 1286 1287 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1285 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
1267 1268 1269 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1267 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
1274 1275 1276 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1274 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
1282 1283 1284 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1282 def serialize_image_pulls_disabled @serialize_image_pulls_disabled end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1290 1291 1292 1293 1294 |
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 1290 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 |