4.3 Validating the Kubernetes Module

When you have added the kubernetes module to an environment, you should validate the nodes are configured correctly to deploy the Kubernetes module.

Use the olcnectl module validate command to validate the nodes are configured correctly. For example, to validate the kubernetes module named mycluster in the myenvironment environment:

$ olcnectl --api-server 127.0.0.1:8091 module validate --environment-name myenvironment \
  --name mycluster

If there are any validation errors, the commands required to fix the nodes are provided in the output. If you want to save the commands as scripts, use the --generate-scripts option. For example:

$ olcnectl --api-server 127.0.0.1:8091 module validate --environment-name myenvironment \
  --name mycluster --generate-scripts

A script is created for each node in the module, saved to the local directory, and named hostname:8090.sh. You can copy the script to the appropriate node, and run it to fix any validation errors.