mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
114 lines
2.5 KiB
Plaintext
114 lines
2.5 KiB
Plaintext
// Module included in the following assemblies:
|
|
// * edge_computing/ibi-image-based-install.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="ibi-install-lcao-cli_{context}"]
|
|
= Installing the {lcao} by using the CLI
|
|
|
|
You can use the OpenShift CLI (`oc`) to install the {lcao} from the 4.15 Operator catalog.
|
|
|
|
.Prerequisites
|
|
|
|
* Install the OpenShift CLI (`oc`).
|
|
* Log in as a user with `cluster-admin` privileges.
|
|
|
|
.Procedure
|
|
|
|
. Create a namespace for the {lcao}:
|
|
+
|
|
.Example `lcao-namespace.yaml` file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: openshift-lifecycle-agent
|
|
annotations:
|
|
workload.openshift.io/allowed: management
|
|
----
|
|
|
|
.. Create the `Namespace` CR:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create -f lcao-namespace.yaml
|
|
----
|
|
|
|
. Create an Operator group for the {lcao}.
|
|
+
|
|
.Example `lcao-operatorgroup.yaml` file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: operators.coreos.com/v1
|
|
kind: OperatorGroup
|
|
metadata:
|
|
name: openshift-lifecycle-agent
|
|
namespace: openshift-lifecycle-agent
|
|
spec:
|
|
targetNamespaces:
|
|
- openshift-lifecycle-agent
|
|
----
|
|
|
|
.. Create the `OperatorGroup` CR:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create -f lcao-operatorgroup.yaml
|
|
----
|
|
|
|
. Create a `Subscription` CR:
|
|
|
|
.. Define the `Subscription` CR and save the YAML file, for example, `lcao-subscription.yaml`:
|
|
+
|
|
.Example `lcao-subscription.yaml` file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: operators.coreos.com/v1
|
|
kind: Subscription
|
|
metadata:
|
|
name: openshift-lifecycle-agent-subscription
|
|
namespace: openshift-lifecycle-agent
|
|
spec:
|
|
channel: "stable"
|
|
name: lifecycle-agent
|
|
source: redhat-operators
|
|
sourceNamespace: openshift-marketplace
|
|
----
|
|
|
|
.. Create the `Subscription` CR by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create -f lcao-subscription.yaml
|
|
----
|
|
|
|
.Verification
|
|
|
|
. Verify that the installation succeeded by inspecting the CSV resource:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get csv -n openshift-lifecycle-agent
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal,subs="attributes+"]
|
|
----
|
|
NAME DISPLAY VERSION REPLACES PHASE
|
|
lifecycle-agent.v{product-version}.0 Openshift Lifecycle Agent {product-version}.0 Succeeded
|
|
----
|
|
|
|
. Verify that the {lcao} is up and running:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc get deploy -n openshift-lifecycle-agent
|
|
----
|
|
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME READY UP-TO-DATE AVAILABLE AGE
|
|
lifecycle-agent-controller-manager 1/1 1 1 14s
|
|
---- |