Removing an instance group from a placement group
If you do not have the Yandex Cloud command line interface yet, install and initialize it.
The folder specified in the CLI profile is used by default. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
View a description of the update group command in the CLI:
yc compute instance-group update --help
-
Get a list of instance groups in the default folder:
yc compute instance-group list
Result:
yc compute instance-group list +----------------------+-----------------------+------+ | ID | NAME | SIZE | +----------------------+-----------------------+------+ | amc65sbgfqeq******** | first-instance-group | 2 | +----------------------+-----------------------+------+
-
Select the
ID
of the instance group. -
Delete the
placement_policy
section from the YAML file you used to create the group, e.g.,specification.yaml
. If the YAML file was not saved, get information about the instance group and create a new file. For more information, see Creating a fixed-size instance group. -
Update the instance group in the default folder:
yc compute instance-group update --id <instance_group_ID> --file specification.yaml
Instance Groups will start removing the instance group from the placement group.
You can remove an instance group from a placement group by using the update REST API method for the InstanceGroup resource or the InstanceGroupService/Update gRPC API call.
To request the list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.