Creating an Oracle Linux Virtualization Manager Cluster
Create a Kubernetes cluster on Oracle Linux Virtualization Manager using the
olvm
provider.
Creating a Kubernetes cluster on Oracle Linux Virtualization Manager using the
olvm
provider requires that you first set up the localhost to create an
ephemeral cluster using the libvirt
provider, or have a cluster available
to use as the management cluster. For information on the management cluster, see Oracle Linux Virtualization Manager Provider.
Important:
The number of control plane nodes must be an odd number (1, 3, 5, and so on) to avoid split brain scenarios with High Availability. The default is 1 control plane node and 0 worker nodes.
Create the cluster. Use the ocne cluster start
command to create a cluster. The
syntax is:
ocne cluster start
[{-u|--auto-start-ui} {true|false}]
[{-o|--boot-volume-container-image} URI]
[{-C|--cluster-name} name]
[{-c|--config} path]
[{-n|--control-plane-nodes} integer]
[{-i|--key} path]
[--load-balancer address]
[{-P|--provider} provider]
[{-s|--session} URI]
[{-v|--version} version]
[--virtual-ip IP]
[{-w|--worker-nodes} integer]
For more information on the syntax options, see Oracle Cloud Native Environment: CLI.
For example:
To use a cluster configuration file:
ocne cluster start --config myconfig.yaml
To use the settings in the default configuration file:
ocne cluster start --provider olvm
Tip:
You can see the nodes as they're created using the Oracle Linux Virtualization Manager console. The control plane VMs are created first, then the worker node VMs.