|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * security/zero_trust_workload_identity_manageer/zero-trust-manager-install.adoc |
| 4 | + |
| 5 | +:_mod-docs-content-type: PROCEDURE |
| 6 | +[id="zero-trust-manager-install-cli_{context}"] |
| 7 | += Installing the {zero-trust-full} by using the CLI |
| 8 | + |
| 9 | +.Prerequisites |
| 10 | + |
| 11 | +* You have access to the cluster with `cluster-admin` privileges. |
| 12 | +
|
| 13 | +.Procedure |
| 14 | + |
| 15 | +. Create a new project named `zero-trust-workload-identity-manager` by running the following command: |
| 16 | ++ |
| 17 | +[source, terminal] |
| 18 | +---- |
| 19 | +$ oc new-project zero-trust-workload-identity-manager |
| 20 | +---- |
| 21 | + |
| 22 | +. Create an `OperatorGroup` object: |
| 23 | + |
| 24 | +.. Create a YAML file, for example, `operatorGroup.yaml`, with the following content: |
| 25 | ++ |
| 26 | +.Example `operatorGroup.yaml` |
| 27 | ++ |
| 28 | +[source, yaml] |
| 29 | +---- |
| 30 | +apiVersion: operators.coreos.com/v1 |
| 31 | +kind: OperatorGroup |
| 32 | +metadata: |
| 33 | + name: openshift-zero-trust-workload-identity-manager |
| 34 | + namespace: zero-trust-workload-identity-manager |
| 35 | +spec: |
| 36 | + upgradeStrategy: Default |
| 37 | +---- |
| 38 | + |
| 39 | +.. Create the `OperatorGroup` object by running the following command: |
| 40 | ++ |
| 41 | +[source, terminal] |
| 42 | +---- |
| 43 | +$ oc create -f operatorGroup.yaml |
| 44 | +---- |
| 45 | + |
| 46 | +. Create a `Subscription` object: |
| 47 | + |
| 48 | +.. Create a YAML file, for example, `subscription.yaml`, that defines the `Subscription` object: |
| 49 | ++ |
| 50 | +.Example `subscription.yaml` |
| 51 | ++ |
| 52 | +[source, yaml] |
| 53 | +---- |
| 54 | +apiVersion: operators.coreos.com/v1alpha1 |
| 55 | +kind: Subscription |
| 56 | +metadata: |
| 57 | + name: openshift-zero-trust-workload-identity-manager |
| 58 | + namespace: zero-trust-workload-identity-manager |
| 59 | +spec: |
| 60 | + channel: tech-preview-v0.1 |
| 61 | + name: openshift-zero-trust-workload-identity-manager |
| 62 | + source: redhat-operators |
| 63 | + sourceNamespace: openshift-marketplace |
| 64 | + installPlanApproval: Automatic |
| 65 | +---- |
| 66 | + |
| 67 | +.. Create the `Subscription` object by running the following command: |
| 68 | ++ |
| 69 | +[source, terminal] |
| 70 | +---- |
| 71 | +$ oc create -f subscription.yaml |
| 72 | +---- |
| 73 | + |
| 74 | +.Verification |
| 75 | + |
| 76 | +. Verify that the OLM subscription is created by running the following command: |
| 77 | ++ |
| 78 | +[source, terminal] |
| 79 | +---- |
| 80 | +$ oc get subscription -n zero-trust-workload-identity-manager |
| 81 | +---- |
| 82 | ++ |
| 83 | +.Example output |
| 84 | +[source, terminal] |
| 85 | +---- |
| 86 | +NAME PACKAGE SOURCE CHANNEL |
| 87 | +openshift-zero-trust-workload-identity-manager zero-trust-workload-identity-manager redhat-operators tech-preview-v0.1 |
| 88 | +---- |
| 89 | + |
| 90 | +. Verify whether the Operator is successfully installed by running the following command: |
| 91 | ++ |
| 92 | +[source, terminal] |
| 93 | +---- |
| 94 | +$ oc get csv -n zero-trust-workload-identity-manager |
| 95 | +---- |
| 96 | ++ |
| 97 | +.Example output |
| 98 | +[source, terminal] |
| 99 | +---- |
| 100 | +NAME DISPLAY VERSION PHASE |
| 101 | +zero-trust-workload-identity-manager.v0.1.0 Zero Trust Workload Identity Manager 0.1.0 Succeeded |
| 102 | +---- |
| 103 | + |
| 104 | +. Verify that the {zero-trust-full} controller manager is ready by running the following command: |
| 105 | ++ |
| 106 | +[source, terminal] |
| 107 | +---- |
| 108 | +$ oc get deployment -l name=zero-trust-workload-identity-manager -n zero-trust-workload-identity-manager |
| 109 | +---- |
| 110 | ++ |
| 111 | +.Example output |
| 112 | +[source, terminal] |
| 113 | +---- |
| 114 | +NAME READY UP-TO-DATE AVAILABLE AGE |
| 115 | +zero-trust-workload-identity-manager-controller-manager 1/1 1 1 43m |
| 116 | +---- |
0 commit comments