mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
112 lines
2.4 KiB
Plaintext
112 lines
2.4 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * networking/aws_load_balancer_operator/install-aws-load-balancer-operator.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="nw-installing-aws-load-balancer-operator-cli_{context}"]
|
|
= Installing the AWS Load Balancer Operator by using the CLI
|
|
|
|
You can install the AWS Load Balancer Operator by using the CLI.
|
|
|
|
.Prerequisites
|
|
|
|
* You are logged in to the {product-title} web console as a user with `cluster-admin` permissions.
|
|
|
|
* Your cluster is configured with AWS as the platform type and cloud provider.
|
|
|
|
* You are logged into the OpenShift CLI (`oc`).
|
|
|
|
.Procedure
|
|
|
|
. Create a `Namespace` object:
|
|
|
|
.. Create a YAML file that defines the `Namespace` object:
|
|
+
|
|
.Example `namespace.yaml` file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: aws-load-balancer-operator
|
|
----
|
|
|
|
.. Create the `Namespace` object by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f namespace.yaml
|
|
----
|
|
|
|
. Create an `OperatorGroup` object:
|
|
|
|
.. Create a YAML file that defines the `OperatorGroup` object:
|
|
+
|
|
.Example `operatorgroup.yaml` file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: operators.coreos.com/v1
|
|
kind: OperatorGroup
|
|
metadata:
|
|
name: aws-lb-operatorgroup
|
|
namespace: aws-load-balancer-operator
|
|
spec:
|
|
upgradeStrategy: Default
|
|
----
|
|
|
|
.. Create the `OperatorGroup` object by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f operatorgroup.yaml
|
|
----
|
|
|
|
. Create a `Subscription` object:
|
|
|
|
.. Create a YAML file that defines the `Subscription` object:
|
|
+
|
|
.Example `subscription.yaml` file
|
|
[source,yaml]
|
|
----
|
|
apiVersion: operators.coreos.com/v1alpha1
|
|
kind: Subscription
|
|
metadata:
|
|
name: aws-load-balancer-operator
|
|
namespace: aws-load-balancer-operator
|
|
spec:
|
|
channel: stable-v1
|
|
installPlanApproval: Automatic
|
|
name: aws-load-balancer-operator
|
|
source: redhat-operators
|
|
sourceNamespace: openshift-marketplace
|
|
----
|
|
|
|
.. Create the `Subscription` object by running the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc apply -f subscription.yaml
|
|
----
|
|
|
|
.Verification
|
|
|
|
. Get the name of the install plan from the subscription:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n aws-load-balancer-operator \
|
|
get subscription aws-load-balancer-operator \
|
|
--template='{{.status.installplan.name}}{{"\n"}}'
|
|
----
|
|
|
|
. Check the status of the install plan:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc -n aws-load-balancer-operator \
|
|
get ip <install_plan_name> \
|
|
--template='{{.status.phase}}{{"\n"}}'
|
|
----
|
|
+
|
|
The output must be `Complete`.
|