Class: Google::Apis::ContainerV1::AutoprovisioningNodePoolDefaults
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1::AutoprovisioningNodePoolDefaults
- Defined in:
- generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb
Overview
AutoprovisioningNodePoolDefaults contains defaults for a node pool created by NAP.
Instance Attribute Summary collapse
-
#management ⇒ Google::Apis::ContainerV1::NodeManagement
NodeManagement defines the set of node management services turned on for the node pool.
-
#oauth_scopes ⇒ Array<String>
Scopes that are used by NAP when creating node pools.
-
#service_account ⇒ String
The Google Cloud Platform Service Account to be used by the node VMs.
-
#upgrade_settings ⇒ Google::Apis::ContainerV1::UpgradeSettings
These upgrade settings control the level of parallelism and the level of disruption caused by an upgrade.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AutoprovisioningNodePoolDefaults
constructor
A new instance of AutoprovisioningNodePoolDefaults.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ AutoprovisioningNodePoolDefaults
Returns a new instance of AutoprovisioningNodePoolDefaults.
202 203 204 |
# File 'generated/google/apis/container_v1/classes.rb', line 202 def initialize(**args) update!(**args) end |
Instance Attribute Details
#management ⇒ Google::Apis::ContainerV1::NodeManagement
NodeManagement defines the set of node management services turned on for the
node pool.
Corresponds to the JSON property management
166 167 168 |
# File 'generated/google/apis/container_v1/classes.rb', line 166 def management @management end |
#oauth_scopes ⇒ Array<String>
Scopes that are used by NAP when creating node pools. If oauth_scopes are
specified, service_account should be empty.
Corresponds to the JSON property oauthScopes
172 173 174 |
# File 'generated/google/apis/container_v1/classes.rb', line 172 def oauth_scopes @oauth_scopes end |
#service_account ⇒ String
The Google Cloud Platform Service Account to be used by the node VMs. If
service_account is specified, scopes should be empty.
Corresponds to the JSON property serviceAccount
178 179 180 |
# File 'generated/google/apis/container_v1/classes.rb', line 178 def service_account @service_account end |
#upgrade_settings ⇒ Google::Apis::ContainerV1::UpgradeSettings
These upgrade settings control the level of parallelism and the level of
disruption caused by an upgrade.
maxUnavailable controls the number of nodes that can be simultaneously
unavailable.
maxSurge controls the number of additional nodes that can be added to the
node pool temporarily for the time of the upgrade to increase the number of
available nodes.
(maxUnavailable + maxSurge) determines the level of parallelism (how many
nodes are being upgraded at the same time).
Note: upgrades inevitably introduce some disruption since workloads need to
be moved from old nodes to new, upgraded ones. Even if maxUnavailable=0,
this holds true. (Disruption stays within the limits of
PodDisruptionBudget, if it is configured.)
Consider a hypothetical node pool with 5 nodes having maxSurge=2,
maxUnavailable=1. This means the upgrade process upgrades 3 nodes
simultaneously. It creates 2 additional (upgraded) nodes, then it brings
down 3 old (not yet upgraded) nodes at the same time. This ensures that
there are always at least 4 nodes available.
Corresponds to the JSON property upgradeSettings
200 201 202 |
# File 'generated/google/apis/container_v1/classes.rb', line 200 def upgrade_settings @upgrade_settings end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
207 208 209 210 211 212 |
# File 'generated/google/apis/container_v1/classes.rb', line 207 def update!(**args) @management = args[:management] if args.key?(:management) @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) @service_account = args[:service_account] if args.key?(:service_account) @upgrade_settings = args[:upgrade_settings] if args.key?(:upgrade_settings) end |