Install an operator by using the web console.
Outcomes
Install and uninstall an operator with the web console.
Examine the resources that the web console creates for the installation, and the operator workloads.
As the student user on the workstation machine, use the lab command to prepare your system for this exercise.
This command ensures that the environment is ready.
[student@workstation ~]$ lab start operators-web
Instructions
As the admin user, locate and navigate to the OpenShift web console.
Log in to your OpenShift cluster as the admin user.
[student@workstation ~]$ oc login -u admin -p redhatocp \
https://api.ocp4.example.com:6443
Login successful.
...output omitted...Identify the URL for the web console.
[student@workstation ~]$ oc whoami --show-console
https://console-openshift-console.apps.ocp4.example.comOpen a web browser and navigate to https://console-openshift-console.apps.ocp4.example.com.
Click and log in as the admin user with the redhatocp password.
Install the File Integrity operator.
Click → . In the field, type integrity to locate the File Integrity operator, and then click .
![]() |
The web console displays information about the File Integrity operator. Click to proceed to the page.
![]() |
The page contains installation options. You can use the default options.
The lab environment cluster is a disconnected cluster to ensure that exercises are reproducible. The Operator Lifecycle Manager is configured to use a mirror registry with only the required operators for the course. In this registry, the File Integrity operator has a single available update channel.
By default, the File Integrity operator installs to all namespaces and creates the openshift-file-integrity namespace.
The operator workload resides in this namespace.
Do not enable monitoring, which this exercise does not cover.
![]() |
For more information about the File Integrity operator, refer to the File Integrity Operator chapter in the Red Hat OpenShift Container Platform 4.14 Security and Compliance documentation at https://access.redhat.com/documentation/en-us/openshift_container_platform/4.14/html-single/security_and_compliance/index#file-integrity-operator
Click to install the operator.
The web console displays some progress information. Click .
The web console might display the button briefly before the OLM finishes the installation. The web console can also display errors briefly.
Wait until the web console displays for more than a few seconds.
![]() |
Ensure that the openshift-file-integrity project is selected in the list.
The web console displays details about the installed operator.
The tab displays information about the operator and the related cluster service version resource.
![]() |
Scroll down to the section to review the evolution of the installation process.
The last condition is for the Succeeded phase, because the installation completed correctly.
The tab displays the cluster service version resource API resource in YAML format.
Click the tab to view information about the operator subscription resource. In this tab, you can change the update channel and the update approval configuration. The tab also links to the install plan. The install plan further describes the operator installation process. When the OLM finds an update for an operator that is configured for manual updates, then the OLM creates an install plan for the update. You approve the update in the install plan details page.
Optionally, test the File Integrity operator.
The File Integrity operator watches resources of the FileIntegrity type.
When you create a file integrity resource, the operator creates a workload that verifies the file integrity of nodes.
The results of the verification are presented as resources of the FileIntegrityNodeStatus type.
Click the tab, and click .
![]() |
Use YAML view and modify the gracePeriod to 60. Then, click to create a file integrity resource.
![]() |
Click the tab.
After a few minutes, the list shows a new example-fileintegrity-master01 resource.
![]() |
The first file integrity resource that you create might not work correctly.
If the operator does not create the FileIntegrityNodeStatus resource in a few minutes, then delete and create again the FileIntegrity resource.
The exercise outcome does not depend on obtaining a FileIntegrityNodeStatus resource.
After FileIntegrityNodeStatus has successfully been created, run this as the admin user to modify the node's filesystem: oc debug node/master01 — touch /host/etc/foobar
[student@workstation ~]$ oc debug node/master01 -- touch /host/etc/foobar
Starting pod/master01-debug-l92pd ...
To use host binaries, `run chroot /host`
Removing debug pod ...Click → to list configmaps in the openshift-file-integrity namespace.
![]() |
Select aide-example-fileintegrity-master01-failed and view the report below Data
![]() |
Examine and differentiate the File Integrity operator workloads from the operator-managed workloads.
Click → to list deployments in the openshift-file-integrity namespace.
![]() |
The file-integrity-operator deployment is the operator workload that the OLM creates.
This deployment watches file integrity resources, and creates the workloads to verify file integrity.
Click → to list daemon sets in the openshift-file-integrity namespace.
![]() |
If you create a file integrity resource, then the operator creates an aide-example-fileintegrity daemon set to verify file integrity.
Uninstall the File Integrity operator.
Click → .
In the list of installed operators, click .
Select from the list, and then click .
![]() |
Delete the openshift-file-integrity namespace.
The OLM creates the openshift-file-integrity namespace when installing the File Integrity operator.
Before deleting an operator, always review the operator documentation to learn specific deletion actions.
Click → .
Type integrity in the filter field.
Click .
Select from the list.
Then, type openshift-file-integrity and click .
![]() |