Creating an SELinux policy module on Red Hat OpenShift worker nodes
If you are using NFS storage and your worker nodes are running Security Enhanced Linux (SELinux) in enforcing mode, you must create an SELinux policy module on any nodes where Db2U pods will run.
- Installation phase
- Setting up a client workstation
- Who needs to complete this task?
- A cluster administrator must complete this task.
- When do you need to complete this task?
- If the following statements apply to your environment, you must create an SELinux policy module on your Red Hat
OpenShift Container Platform worker nodes:
- You plan to use NFS storage
- Your worker nodes are running SELinux in enforcing mode
- You plan to install one or more of the following services:
- Db2®
- Db2 Big SQL
- Db2 Warehouse
- OpenPages® (with an internal database)
- Watson™ Knowledge Catalog
- Watson Query
If any of these statements don't apply to your environment, you can skip this task.
About this task
If you are planning to install services that support dedicated worker nodes, you have the
following options:
- If you want to set up dedicated worker nodes, create the policy module only on the nodes where you plan to run the services
- If you don't want to set up dedicated worker nodes, you must create the policy module on all worker nodes in the cluster.
If you are planning to install services that do not support dedicated worker nodes, you have the
following options:
- Create the policy module on all worker nodes in the cluster.
- Disable enforcing mode. (If you choose this option, you do not need to create the policy module.)
- Choose a different type of storage for the services. (If you choose this option, you do not need to create the policy module, but you do need to ensure that you set up an additional type of persistent storage for your cluster.)
The following table identifies which services support dedicated nodes:
Service | Supports dedicated nodes | Does not support dedicated nodes |
---|---|---|
Db2 | ✓ | |
Db2 Big SQL | ✓ | |
Db2 Warehouse | ✓ | |
OpenPages | ✓* | |
Watson Knowledge Catalog | ✓* | |
Watson Query | ✓ |
* The service supports dedicated nodes for Db2U.
Procedure
To create the SELinux policy module: