The software described in this documentation is either no longer supported or is in extended support.
Oracle recommends that you upgrade to a current supported release.

5.2 Platform CLI Examples

This section shows you how to use the olcnectl command to create and manage an Oracle Linux Cloud Native Environment deployment. When you use the olcnectl command, you are prompted for any missing options. For details of the olcnectl command syntax, see Section 5.1, “Platform CLI Syntax”.

5.2.1 Creating an Environment

The first step to deploying Oracle Linux Cloud Native Environment is to create an empty environment.

You can create an environment using certificates provided by Vault, or using existing certificates on the nodes.

5.2.1.1 Creating an Environment using Vault

Use the olcnectl environment create command to create an environment. For example, to create an environment named myenvironment using certificates generated from a Vault instance:

$ olcnectl --api-server 127.0.0.1:8091 environment create --environment-name myenvironment \
  --update-config \
  --vault-token s.3QKNuRoTqLbjXaGBOmO6Psjh \
  --secret-manager-type vault \
  --vault-address https://192.0.2.20:8200 

5.2.1.2 Creating an Environment using Certificates

Use the olcnectl environment create command with the --secret-manager-type file file option. For example:

$ olcnectl --api-server 127.0.0.1:8091 environment create --environment-name myenvironment \
  --update-config \
  --secret-manager-type file \
  --olcne-node-cert-path /etc/olcne/configs/certificates/production/node.cert \
  --olcne-ca-path /etc/olcne/configs/certificates/production/ca.cert \
  --olcne-node-key-path /etc/olcne/configs/certificates/production/node.key