Creating an SELinux policy module on Red Hat OpenShift worker nodes
Important: IBM Cloud Pak® for Data
Version 4.8 will reach end of support (EOS) on 31 July, 2025. For more information, see the Discontinuance of service announcement for IBM Cloud Pak for Data Version 4.X.
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.8 reaches end of support. For more information, see Upgrading from IBM Cloud Pak for Data Version 4.8 to IBM Software Hub Version 5.1.
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)
- IBM® 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 | ✓* | |
| IBM Knowledge Catalog | ✓* | |
| Watson Query | ✓ |
* The service supports dedicated nodes for Db2U.
Procedure
To create the SELinux policy module: