|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * security/external_secrets_operator/external-secrets-operator-install.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="external-secrets-operator-install-cli_{context}"] |
| 7 | += Installing the {external-secrets-operator} by using the CLI |
| 8 | + |
| 9 | +You can use the command-line interface (CLI) to install the {external-secrets-operator}. |
| 10 | + |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have access to the cluster with `cluster-admin` privileges. |
| 14 | +
|
| 15 | +.Procedure |
| 16 | + |
| 17 | +. Create a new project named `external-secrets-operator` by running the following command: |
| 18 | ++ |
| 19 | +[source,terminal] |
| 20 | +---- |
| 21 | +$ oc new-project external-secrets-operator |
| 22 | +---- |
| 23 | + |
| 24 | +. Create an `OperatorGroup` object by defining a YAML file with the following content: |
| 25 | ++ |
| 26 | +.Example `operatorGroup.yaml` file |
| 27 | +[source,yaml] |
| 28 | +---- |
| 29 | +apiVersion: operators.coreos.com/v1 |
| 30 | +kind: OperatorGroup |
| 31 | +metadata: |
| 32 | + name: openshift-external-secrets-operator |
| 33 | + namespace: external-secrets-operator |
| 34 | +spec: |
| 35 | + targetNamespaces: [] |
| 36 | + - "external-secrets-operator" |
| 37 | + spec:{} |
| 38 | +---- |
| 39 | + |
| 40 | +. Create the `OperatorGroup` object by running the following command: |
| 41 | ++ |
| 42 | +[source,terminal] |
| 43 | +---- |
| 44 | +$ oc create -f operatorGroup.yaml |
| 45 | +---- |
| 46 | + |
| 47 | +. Create a `Subscription` object by defining a YAML file with the following content: |
| 48 | ++ |
| 49 | +.Example `subscription.yaml` file |
| 50 | +[source,yaml] |
| 51 | +---- |
| 52 | +apiVersion: operators.coreos.com/v1alpha1 |
| 53 | +kind: Subscription |
| 54 | +metadata: |
| 55 | + name: openshift-external-secrets-operator |
| 56 | + namespace: external-secrets-operator |
| 57 | +spec: |
| 58 | + channel: stable-v1 |
| 59 | + name: openshift-external-secrets-operator |
| 60 | + source: redhat-operators |
| 61 | + sourceNamespace: openshift-marketplace |
| 62 | + installPlanApproval: Automatic |
| 63 | +---- |
| 64 | + |
| 65 | +. Create the `Subscription` object by running the following command: |
| 66 | ++ |
| 67 | +[source,terminal] |
| 68 | +---- |
| 69 | +$ oc create -f subscription.yaml |
| 70 | +---- |
| 71 | + |
| 72 | +.Verification |
| 73 | + |
| 74 | +. Verify that the {olm} subscription is created by running the following command: |
| 75 | ++ |
| 76 | +[source,terminal] |
| 77 | +---- |
| 78 | +$ oc get subscription -n external-secrets-operator |
| 79 | +---- |
| 80 | ++ |
| 81 | +.Example output |
| 82 | +[source,terminal] |
| 83 | +---- |
| 84 | +//content to be added |
| 85 | +---- |
| 86 | + |
| 87 | +. Verify whether the Operator is successfully installed by running the following command: |
| 88 | ++ |
| 89 | +[source,terminal] |
| 90 | +---- |
| 91 | +$ oc get csv -n external-secrets-operator |
| 92 | +---- |
| 93 | ++ |
| 94 | +.Example output |
| 95 | +[source,terminal] |
| 96 | +---- |
| 97 | +//content to be added |
| 98 | +---- |
| 99 | + |
| 100 | +. Verify that the status of the {external-secrets-operator-short} is `Running` by running the following command: |
| 101 | ++ |
| 102 | +[source,terminal] |
| 103 | +---- |
| 104 | +$ oc get pods -n external-secrets-operator |
| 105 | +---- |
| 106 | ++ |
| 107 | +.Example output |
| 108 | +[source,terminal] |
| 109 | +---- |
| 110 | +// content to be added |
| 111 | +---- |
| 112 | + |
| 113 | +. Verify that the status of the `external-secrets` pods is `Running` by running the following command: |
| 114 | ++ |
| 115 | +[source,terminal] |
| 116 | +---- |
| 117 | +$ oc get pods -n external-secrets |
| 118 | +---- |
| 119 | ++ |
| 120 | +.Example output |
| 121 | +[source,terminal] |
| 122 | +---- |
| 123 | +// content to be added |
| 124 | +---- |
0 commit comments