ocne cluster template
Creates a sample cluster template that can be customized as needed.
The output is displayed to the terminal. To save the output, pipe it to a file using
> filename.yaml
.
ocne cluster template
[{-c|--config} path]
[{-P|--provider} provider]
Where:
-
{-c|--config} path
-
The path to a configuration file that contains the definition of the cluster. If this value isn't provided, a small (ephemeral) cluster might be created, using the default hypervisor, for the system where the command is run.
-
{-P|--provider} provider
-
The provider to use when interacting with the cluster. Options are:
-
libvirt
-
oci
(the default) -
byo
-
none
-
Example 4-67 Generate a cluster template file
To generate and display a cluster template file for the oci
provider:
ocne cluster template
Example 4-68 Generate and save a cluster template file
To generate and save a cluster template file:
ocne cluster template > mytemplate.yaml
Example 4-69 Generate and save a cluster template file using a configuration file
To generate and save a cluster template using a configuration file:
ocne cluster template --config myconfig.yaml > mytemplate.yaml