$ oc create -f <file-name>.yaml
You must have admin
privileges.
In the OKD web console, navigate to Operators → OperatorHub.
Search for the File Integrity Operator, then click Install.
Keep the default selection of Installation mode and namespace to ensure that the Operator will be installed to the openshift-file-integrity
namespace.
Click Install.
To confirm that the installation is successful:
Navigate to the Operators → Installed Operators page.
Check that the Operator is installed in the openshift-file-integrity
namespace and its status is Succeeded
.
If the Operator is not installed successfully:
Navigate to the Operators → Installed Operators page and inspect the Status
column for any errors or failures.
Navigate to the Workloads → Pods page and check the logs in any pods in the openshift-file-integrity
project that are reporting issues.
You must have admin
privileges.
Create a Namespace
object YAML file by running:
$ oc create -f <file-name>.yaml
apiVersion: v1
kind: Namespace
metadata:
labels:
openshift.io/cluster-monitoring: "true"
pod-security.kubernetes.io/enforce: privileged (1)
name: openshift-file-integrity
1 | In OKD 4.17, the pod security label must be set to privileged at the namespace level. |
Create the OperatorGroup
object YAML file:
$ oc create -f <file-name>.yaml
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: file-integrity-operator
namespace: openshift-file-integrity
spec:
targetNamespaces:
- openshift-file-integrity
Create the Subscription
object YAML file:
$ oc create -f <file-name>.yaml
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: file-integrity-operator
namespace: openshift-file-integrity
spec:
channel: "stable"
installPlanApproval: Automatic
name: file-integrity-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
Verify the installation succeeded by inspecting the CSV file:
$ oc get csv -n openshift-file-integrity
Verify that the File Integrity Operator is up and running:
$ oc get deploy -n openshift-file-integrity
The File Integrity Operator is supported in a restricted network environment. For more information, see Using Operator Lifecycle Manager in disconnected environments.