Chapter 8 Modifying a Kubernetes Cluster

This chapter shows you how to modify a Kubernetes cluster after it has been created and installed. You modify the cluster by changing the Kubernetes module settings with the Platform API Server. Use the olcnectl module update command to make the configuration changes.

8.1 Modifying SELinux Settings

This section shows you how to change the SELinux settings for an existing cluster. This enables you to change the SELinux settings after the Kubernetes module has been installed.

If you have an existing cluster that is set up for one SELinux mode and you want to change it to another mode, you can use the olcnectl module update command to change the configuration with the Platform API Server.

Modify the SELinux mode:
  1. On each control plane node and worker node, modify the SELinux settings to use the mode you want. For information on setting the SELinux mode in the operating system, see Getting Started.

  2. On the operator node, use the olcnectl module update command to change the configuration with the Platform API Server. For example, to modify the Kubernetes module named mycluster to use the SELinux enforcing mode, enter:

    olcnectl module update \
    --environment-name myenvironment \
    --name mycluster \
    --selinux enforcing