Boot a machine from a block storage volume¶
Technology Preview
Clouds that do not have enough space on hypervisors may require booting of cluster machines from a block storage volume. After enabling this option, the Cinder storage is used instead of the Nova storage.
Requirements:
The minimal storage requirement is 120 GB per node. For details, see Requirements for an OpenStack-based cluster.
Disks performance must match etcd requirements. For details, see etcd documentation.
The following procedure describes how to boot an OpenStack-based machine from a volume using CLI. You can also boot a machine from volume using the Container Cloud web UI by selecting the Boot From Volume option in the machine creation wizard. For details, see Add a machine.
To boot an OpenStack-based machine from a volume using CLI:
Download your management cluster
kubeconfig
:Log in to the Container Cloud web UI with the
m:kaas:namespace@operator
orm:kaas:namespace@writer
permissions.Switch to the required project using the Switch Project action icon located on top of the main left-side navigation panel.
Expand the menu of the tab with your user name.
Click Download kubeconfig to download
kubeconfig
of your management cluster.Log in to any local machine with
kubectl
installed.Copy the downloaded
kubeconfig
to this machine.
Scale down the OpenStack provider on the required management cluster:
kubectl --kubeconfig <pathToMgmtClusterKubeconfig> -n kaas scale deploy openstack-provider --replicas 0
Create a machine using the Container Cloud web UI as described in Add a machine.
Open the required
Machine
object for editing:kubectl --kubeconfig <pathToMgmtClusterKubeconfig> -n <projectName> edit machine <machineName>
In the
spec:providerSpec
section, define the following parameter to boot a server from a block storage volume based on the given image:bootFromVolume: enabled: true volumeSize: 120
Note
The minimal storage requirement is 120 GB per node. For details, see Requirements for an OpenStack-based cluster.
Scale up the OpenStack provider:
kubectl -n kaas scale deploy openstack-provider --replicas 3