Google Cloud Compute V1 API - Module Google::Cloud::Compute::V1::NodeGroup::MaintenancePolicy (v3.5.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Compute V1 API module Google::Cloud::Compute::V1::NodeGroup::MaintenancePolicy.
Specifies how to handle instances when a node in the group undergoes
maintenance. Set to one of: DEFAULT,RESTART_IN_PLACE, or MIGRATE_WITHIN_NODE_GROUP.
The default value is DEFAULT. For more information, see
Maintenance policies.
Constants
UNDEFINED_MAINTENANCE_POLICY
value: 0 A value indicating that the enum field is not set.
DEFAULT
value: 115_302_945 Allow the node and corresponding instances to retain default
maintenance behavior.
MAINTENANCE_POLICY_UNSPECIFIED
value: 72_964_182
MIGRATE_WITHIN_NODE_GROUP
value: 153_483_394 When maintenance must be done on a node, the instances on that node will
be moved to other nodes in the group.
Instances with onHostMaintenance = MIGRATE will live migrate to their
destinations while instances with onHostMaintenance = TERMINATE will
terminate and then restart on their destination nodes if
automaticRestart = true.
RESTART_IN_PLACE
value: 228_647_325 Instances in this group will restart on the same node when maintenance
has completed. Instances must have onHostMaintenance = TERMINATE, and
they will only restart if automaticRestart = true.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-03 UTC."],[],[]]