4.4 Deploying the Kubernetes Module

When you have added and validated a module, you can deploy it to the environment.

By using the olcnectl module install command, you can deploy the Kubernetes module to an environment to create a Kubernetes cluster.

As part of deploying the module:

  • The Kubernetes packages are installed. The kubeadm package installs the packages required to run CRI-O and Kata Containers. CRI-O is needed to delegate containers to a runtime engine (either runc or kata-runtime). For more information about container runtimes, see Container Runtimes.

  • The crio and kubelet services are enabled and started.

For example, use the following command to deploy the kubernetes module named mycluster to the myenvironment environment:

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

Kubernetes is deployed to the nodes.

Important

Deploying the Kubernetes module may take several minutes to complete.