4 Creating a libvirt Cluster
Create a Kubernetes cluster using the libvirt
provider.
Example 4-1 Create a default cluster using the libvirt
provider
To create a libvirt cluster, using all default settings:
ocne cluster start
Example 4-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 4-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 4-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