gcloud compute instance-groups managed update
NAME
[--default-action-on-vm-failure
=ACTION_ON_VM_FAILURE
] [--description
=DESCRIPTION
] [--[no-]force-update-on-repair
] [--instance-redistribution-type
=TYPE
] [--instance-selection
=name
=NAME
,machine-type
=MACHINE_TYPE
[,machine-type
=MACHINE_TYPE
…][,rank
=RANK
]] [--instance-selection-machine-types
=[MACHINE_TYPE
,…]] [--list-managed-instances-results
=MODE
] [--remove-instance-selections
=[INSTANCE_SELECTION_NAME
,…]] [--remove-instance-selections-all
] [--remove-stateful-disks
=DEVICE_NAME
,[DEVICE_NAME
,…]] [--remove-stateful-external-ips
=INTERFACE_NAME
,[…]] [--remove-stateful-internal-ips
=INTERFACE_NAME
,[…]] [--size
=SIZE
] [--standby-policy-initial-delay
=STANDBY_POLICY_INITIAL_DELAY
] [--standby-policy-mode
=STANDBY_POLICY_MODE
] [--stateful-disk
=[auto-delete
=AUTO-DELETE
],[device-name
=DEVICE-NAME
]] [--stateful-external-ip
=[enabled
],[auto-delete
=AUTO-DELETE
],[interface-name
=INTERFACE-NAME
]] [--stateful-internal-ip
=[enabled
],[auto-delete
=AUTO-DELETE
],[interface-name
=INTERFACE-NAME
]] [--stopped-size
=STOPPED_SIZE
] [--suspended-size
=SUSPENDED_SIZE
] [--target-distribution-shape
=SHAPE
] [--clear-autohealing
| --initial-delay
=INITIAL_DELAY
--health-check
=HEALTH_CHECK
| --http-health-check
=HTTP_HEALTH_CHECK
| --https-health-check
=HTTPS_HEALTH_CHECK
] [--region
=REGION
| --zone
=ZONE
] [--remove-workload-policy
| --workload-policy
=WORKLOAD_POLICY
] [--update-policy-max-surge
=MAX_SURGE
--update-policy-max-unavailable
=MAX_UNAVAILABLE
--update-policy-minimal-action
=UPDATE_POLICY_MINIMAL_ACTION
--update-policy-most-disruptive-action
=UPDATE_POLICY_MOST_DISRUPTIVE_ACTION
--update-policy-replacement-method
=UPDATE_POLICY_REPLACEMENT_METHOD
--update-policy-type
=UPDATE_TYPE
] [GCLOUD_WIDE_FLAG …
]
gcloud compute instance-groups managed update
allows you to specify or modify the description and group policies for an existing managed instance group, including the group's update policy and optional autohealing and stateful policies
The group's update policy defines how an updated VM configuration is applied to existing VMs in the group. For more information, see [Applying new configurations] (https://cloud.google.com/compute/docs/instance-groups/updating-migs) to VMs in a MIG.
A stateful policy defines which resources should be preserved across the group. When instances in the group are recreated, stateful resources are preserved. This command allows you to update stateful resources, specifically to add or remove stateful disks.
When updating the autohealing policy, you can specify the health check, initial delay, or both. If either field is unspecified, its value won't be modified. If --health-check
is specified, the health check monitors the health of your application. Whenever the health check signal for an instance becomes UNHEALTHY
, the autohealer recreates the instance.
If no health check exists, instance autohealing is triggered only by instance status: if an instance is not RUNNING
, the group recreates it.
NAME
--default-action-on-vm-failure
=ACTION_ON_VM_FAILURE
repair
. ACTION_ON_VM_FAILURE
must be one of:
do-nothing
repair
--description
=DESCRIPTION
--[no-]force-update-on-repair
-no-force-update-on-repair
, then updates are applied in accordance with the group's update policy type. By default, this flag is disabled. Use --force-update-on-repair
to enable and --no-force-update-on-repair
to disable.
--instance-redistribution-type
=TYPE
An instance redistribution type can be specified only for a non-autoscaled regional managed instance group. By default it is set to
.proactive
TYPE
must be one of:
none
proactive
--instance-selection
=name
=NAME
,machine-type
=MACHINE_TYPE
[,machine-type
=MACHINE_TYPE
…][,rank
=RANK
]
--instance-selection="name=instance-selection-1,machine-type=e2-standard-8,machine-type=t2d-standard-8,rank=0"
--instance-selection-machine-types
=[MACHINE_TYPE
,…]
--list-managed-instances-results
=MODE
pageless
. MODE
must be one of:
pageless
paginated
--remove-instance-selections
=[INSTANCE_SELECTION_NAME
,…]
--remove-instance-selections-all
--remove-stateful-disks
=DEVICE_NAME
,[DEVICE_NAME
,…]
--remove-stateful-external-ips
=INTERFACE_NAME
,[…]
--remove-stateful-internal-ips
=INTERFACE_NAME
,[…]
--size
=SIZE
--standby-policy-initial-delay
=STANDBY_POLICY_INITIAL_DELAY
--standby-policy-mode
=STANDBY_POLICY_MODE
manual
. STANDBY_POLICY_MODE
must be one of:
manual
scale-out-pool
--stateful-disk
=[auto-delete
=AUTO-DELETE
],[device-name
=DEVICE-NAME
]
Use this argument multiple times to update more disks.
If a stateful disk with the given device name already exists in the current instance configuration, its properties will be replaced by the newly provided ones. Otherwise, a new stateful disk definition will be added to the instance configuration.
device-name
auto-delete
never
: (Default) Never delete this disk. Instead, detach the disk when its instance is deleted.on-permanent-instance-deletion
: Delete the stateful disk when the instance that it's attached to is permanently deleted from the group; for example, when the instance is deleted manually or when the group size is decreased.--stateful-external-ip
=[enabled
],[auto-delete
=AUTO-DELETE
],[interface-name
=INTERFACE-NAME
]
Use this argument multiple times to update more IPs.
If a stateful external IP with the given interface name already exists in the current instance configuration, its properties are replaced by the newly provided ones. Otherwise, a new stateful external IP definition is added to the instance configuration.
At least one of the following is required:
enabled
nic0
is assumed by default when interface-name
is not specified. This flag can be omitted when interface-name
is provided explicitly.
interface-name
enabled
is provided. Additional arguments:
auto-delete
never
: (Default) Never delete the static IP address. Instead, unassign the address when its instance is permanently deleted and keep the address reserved.on-permanent-instance-deletion
: Delete the static IP address reservation when the instance that it's assigned to is permanently deleted from the instance group; for example, when the instance is deleted manually or when the group size is decreased.--stateful-internal-ip
=[enabled
],[auto-delete
=AUTO-DELETE
],[interface-name
=INTERFACE-NAME
]
Use this argument multiple times to update more IPs.
If a stateful internal IP with the given interface name already exists in the current instance configuration, its properties are replaced by the newly provided ones. Otherwise, a new stateful internal IP definition is added to the instance configuration.
At least one of the following is required:
enabled
nic0
is assumed by default when interface-name
is not specified. This flag can be omitted when interface-name
is provided explicitly.
interface-name
enabled
is provided. Additional arguments:
auto-delete
never
: (Default) Never delete the static IP address. Instead, unassign the address when its instance is permanently deleted and keep the address reserved.on-permanent-instance-deletion
: Delete the static IP address reservation when the instance that it's assigned to is permanently deleted from the instance group; for example, when the instance is deleted manually or when the group size is decreased.--stopped-size
=STOPPED_SIZE
--suspended-size
=SUSPENDED_SIZE
--target-distribution-shape
=SHAPE
even
. SHAPE
must be one of:
any
any-single-zone
balanced
even
--clear-autohealing
--initial-delay
=INITIAL_DELAY
--health-check
=HEALTH_CHECK
--http-health-check
=HTTP_HEALTH_CHECK
HttpHealthCheck is deprecated. Use --health-check instead.
--https-health-check
=HTTPS_HEALTH_CHECK
HttpsHealthCheck is deprecated. Use --health-check instead.
--region
=REGION
A list of regions can be fetched by running:
gcloud compute regions list
Overrides the default compute/region
property value for this command invocation.
--zone
=ZONE
A list of zones can be fetched by running:
gcloud compute zones list
Overrides the default compute/zone
property value for this command invocation.
--remove-workload-policy
--workload-policy
=WORKLOAD_POLICY
--update-policy-max-surge
=MAX_SURGE
--update-policy-max-unavailable
=MAX_UNAVAILABLE
--update-policy-minimal-action
=UPDATE_POLICY_MINIMAL_ACTION
UPDATE_POLICY_MINIMAL_ACTION
must be one of:
none
refresh
restart
replace
--update-policy-most-disruptive-action
=UPDATE_POLICY_MOST_DISRUPTIVE_ACTION
UPDATE_POLICY_MOST_DISRUPTIVE_ACTION
must be one of:
none
refresh
restart
replace
--update-policy-replacement-method
=UPDATE_POLICY_REPLACEMENT_METHOD
UPDATE_POLICY_REPLACEMENT_METHOD
must be one of:
recreate
substitute
--update-policy-type
=UPDATE_TYPE
UPDATE_TYPE
must be one of:
opportunistic
proactive
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud alpha compute instance-groups managed update
gcloud beta compute instance-groups managed update
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4