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.
After you create an empty environment, you can add any modules you want to it. You can see a list of the available modules for an environment using the olcnectl module list command.
Use the olcnectl module create command to add and configure modules in an environment.
This example creates a Kubernetes cluster using the
kubernetes
module. For a full list of the
module_args
for the
kubernetes
module, see
Section 5.1, “Platform CLI Syntax”.
To add the kubernetes
module to an
environment with one master and two worker nodes:
$ olcnectl --api-server 127.0.0.1:8091 module create --environment-name myenvironment \
--module kubernetes --name mycluster \
--container-registry container-registry.oracle.com/olcne \
--apiserver-advertise-address 192.0.2.100 \
--master-nodes master1.example.com:8090 \
--worker-nodes worker1.example.com:8090,worker2.example.com:8090
For Release 1.1.10 onwards, you must also include the location
of the certificates for the
externalip-validation-webhook-service
Kubernetes service:
$ olcnectl --api-server 127.0.0.1:8091 module create --environment-name myenvironment \
--module kubernetes --name mycluster \
--container-registry container-registry.oracle.com/olcne \
--apiserver-advertise-address 192.0.2.100 \
--master-nodes master1.example.com:8090 \
--worker-nodes worker1.example.com:8090,worker2.example.com:8090 \
--restrict-service-externalip-ca-cert=/etc/olcne/configs/certificates/restrict_external_ip/production/ca.cert \
--restrict-service-externalip-tls-cert=/etc/olcne/configs/certificates/restrict_external_ip/production/node.cert \
--restrict-service-externalip-tls-key=/etc/olcne/configs/certificates/restrict_external_ip/production/node.key