Removing an instance group from a placement group
If you do not have the Yandex Cloud CLI yet, install and initialize it.
The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID>
command. You can specify a different folder using the --folder-name
or --folder-id
parameter.
-
See the description of the CLI command for updating a group:
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
ID
of the instance group in question. -
Delete the
placement_policy
section from the YAML file you used to create the group, e.g.,specification.yaml
. If this YAML file is missing, get info on 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 initiate 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 a list of available instance groups, use the listInstances REST API method or the InstanceGroupService/ListInstances gRPC API call.