Add a compute node
This section describes how to add a new compute node to your existing Mirantis OpenStack for Kubernetes deployment.
To add a compute node:
Add a bare-metal host to the MOSK cluster as described in Add a bare-metal host.
Create a Kubernetes machine in your cluster as described in Add a machine.
When adding the machine, specify the node labels as required for an OpenStack compute node:
If required, configure the compute host to enable huge pages, SR-IOV, and other advanced features in your MOSK deployment. See Advanced OpenStack configuration (optional) for details.
Once the node is available in Kubernetes and when the
nova-computeandneutronpods are running on the node, verify that the compute service and Neutron Agents are healthy in OpenStack API.In the
keystone-clientpod, run:openstack network agent list --host <cmp_host_name> openstack compute service list --host <cmp_host_name>
Verify that the compute service is mapped to cell.
The OpenStack Controller triggers the
nova-cell-setupjob once it detects a new compute pod in theReadystate. This job sets mapping for new compute services to cells.In the
nova-api-osapipod, run:nova-manage cell_v2 list_hosts | grep <cmp_host_name>
Strongly recommended. Back up the Kubernetes underlay as described in Create backups of the Kubernetes underlay.
Since the procedure above modifies the cluster configuration, a fresh backup is required to restore the cluster in case further reconfigurations fail.
Important
Because the restoration process is complicated, we strongly recommend contacting Mirantis support for assistance.
Important
If you still decide to restore the Kubernetes underlay from a backup on your own, you must scale down
helm-controlleron the cluster being restored if the Kubernetes underlay version of the affected cluster after the restore will differ from the Kubernetes underlay version in theClusterReleaseobject that is set in Cluster objects in the management cluster:If you are restoring k0s on a management cluster: before starting the restore, scale down
helm-controlleron each affected MOSK cluster. This prevents unintended Ceph and OpenStack downgrades on MOSK clusters after the management cluster is restored.If you are restoring MKE on a MOSK cluster: immediately after the restore completes, scale down
helm-controller. Because the restore rolls the cluster back to an older release, this prevents it from triggering a premature upgrade of Helm releases.