Installing the External Secrets Operator for Red Hat OpenShift by using the CLI
You can install the External Secrets Operator for Red Hat OpenShift by manually configuring the Operator Lifecycle Manager (OLM) resources using the OpenShift CLI. You can create a dedicated namespace, define the Operator’s scope, and install the Operator from the catalog.
-
You have access to the cluster with
cluster-adminprivileges.
-
Create a new project named
external-secrets-operatorby running the following command:$ oc new-project external-secrets-operator -
Create an
OperatorGroupobject by defining a YAML file with the following content:apiVersion: operators.coreos.com/v1 kind: OperatorGroup metadata: name: openshift-external-secrets-operator namespace: external-secrets-operator spec: targetNamespaces: [] -
Create the
OperatorGroupobject by running the following command:$ oc create -f operatorGroup.yaml -
Create a
Subscriptionobject by defining a YAML file with the following content:The following is an example of a
subscription.yamlfile.apiVersion: operators.coreos.com/v1alpha1 kind: Subscription metadata: name: openshift-external-secrets-operator namespace: external-secrets-operator spec: channel: stable-v1 name: openshift-external-secrets-operator source: redhat-operators sourceNamespace: openshift-marketplace installPlanApproval: Automatic startingCSV: external-secrets-operator.v1.0.0 -
Create the
Subscriptionobject by running the following command:$ oc create -f subscription.yaml
-
Verify that the OLM subscription is created by running the following command:
$ oc get subscription -n external-secrets-operatorThe following is example output verifying the OLM subscription is created.
NAME PACKAGE SOURCE CHANNEL openshift-external-secrets-operator openshift-external-secrets-operator redhat-operators stable-v1 -
Verify whether the Operator is successfully installed by running the following command:
$ oc get csv -n external-secrets-operatorThe following is example output verifying that the Operator is installed.
NAME DISPLAY VERSION REPLACES PHASE external-secrets-operator.v1.0.0 External Secrets Operator for Red Hat OpenShift 1.0.0 Succeeded -
Verify that the status of the External Secrets Operator is
Runningby entering the following command:$ oc get pods -n external-secrets-operatorThe following is example output verifying the External Secrets Operator is
Running.NAME READY STATUS RESTARTS AGE external-secrets-operator-controller-manager-5699f4bc54-kbsmn 1/1 Running 0 25h