Assign or unassign a machine to or from a machine pool

If a machine was originally created outside a machine pool, you can assign it later on an existing cluster. You may also need to unassign a machine from a machine pool, for example, to delete a machine.

To assign or unassign a machine to or from a machine pool:

  1. Log in to the Container Cloud web UI with the m:kaas:namespace@operator or m:kaas:namespace@writer permissions.

  2. Switch to the required project using the Switch Project action icon located on top of the main left-side navigation panel.

  3. In the Clusters tab, click the required cluster name to open the list of machines and machine pools running on it.

  4. Select from the following options:

    • To assign a machine to a machine pool:

      1. In the Unassigned Machines section, click the More action icon in the last column of the machine you want to assign and select Assign machine to pool.

        Note

        • A machine spec must match the spec of the assigned machine pool.

        • You can assign only unassigned machines to a pool.

      2. From the list of available machine pools, select the required machine pool with a spec that matches the machine spec and click Update.

    • To unassign a machine from the machine pool:

      1. In the corresponding machine pools section, click the More action icon in the last column of the machine you want to unassign and select Unassign from pool.

      2. Confirm your action.

        Note

        The replicas count automatically decreases by one when you unassign a machine from a pool with a positive replicas count.

Caution

If a machine is assigned to a machine pool, the providerSpec section of the specific Machine object automatically updates during pool configuration. The only providerSpec field that is not overwritten automatically is maintenance. Do not edit other fields of this section manually.