Creating a libvirt Cluster
Create a Kubernetes cluster using the libvirt
provider.
- Set up the host to provision clusters using the
libvirt
provider.
Example 6-1 Create a default cluster using the libvirt
provider
To create a libvirt cluster, using all default settings:
ocne cluster start
Example 6-2 Create a libvirt
cluster using a configuration file
To create a libvirt
cluster using a configuration file:
ocne cluster start --config myconfig.yaml
Example 6-3 Create a libvirt
cluster with specified nodes and virtual IP
To create a cluster with a specified number of worker and control plane nodes, and a virtual IP address:
ocne cluster start --control-plane-nodes 3 --worker-nodes 5 --virtual-ip 192.168.0.100
Example 6-4 Create a remote libvirt
cluster using a configuration
file
To create a cluster on a remote host using a configuration file:
ocne cluster start --session qemu+ssh://myuser@myhost.example.com/system --config myconfig.yaml