apiVersion: v1
kind: Namespace
metadata:
name: aws-load-balancer-operator
The AWS Load Balancer Operator deploys and manages the AWS Load Balancer Controller. You can install the AWS Load Balancer Operator from the OperatorHub by using OpenShift Container Platform web console or cli.
You can install the AWS Load Balancer Operator by using the web console.
You have logged in to the OpenShift Container Platform web console as a user with cluster-admin
permissions.
Your cluster is configured with AWS as the platform type and cloud provider.
If you are using a security token service (STS) or user-provisioned infrastructure, follow the related preparation steps. For example, if you are using AWS Security Token Service, see "Preparing for the AWS Load Balancer Operator on a cluster using the AWS Security Token Service (STS)".
Navigate to Operators → OperatorHub in the OpenShift Container Platform web console.
Select the AWS Load Balancer Operator. You can use the Filter by keyword text box or use the filter list to search for the AWS Load Balancer Operator from the list of Operators.
Select the aws-load-balancer-operator
namespace.
On the Install Operator page, select the following options:
Update the channel as stable-v1.
Installation mode as All namespaces on the cluster (default).
Installed Namespace as aws-load-balancer-operator
. If the aws-load-balancer-operator
namespace does not exist, it gets created during the Operator installation.
Select Update approval as Automatic or Manual. By default, the Update approval is set to Automatic. If you select automatic updates, the Operator Lifecycle Manager (OLM) automatically upgrades the running instance of your Operator without any intervention. If you select manual updates, the OLM creates an update request. As a cluster administrator, you must then manually approve that update request to update the Operator updated to the new version.
click Install.
Verify that the AWS Load Balancer Operator shows the Status as Succeeded on the Installed Operators dashboard.
You can install the AWS Load Balancer Operator by using the cli.
You are logged in to the OpenShift Container Platform 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
).
Create a Namespace
object:
Create a YAML file that defines the Namespace
object:
namespace.yaml
fileapiVersion: v1
kind: Namespace
metadata:
name: aws-load-balancer-operator
Create the Namespace
object by running the following command:
$ oc apply -f namespace.yaml
Create a CredentialsRequest
object:
Create a YAML file that defines the CredentialsRequest
object:
credentialsrequest.yaml
fileapiVersion: cloudcredential.openshift.io/v1
kind: CredentialsRequest
metadata:
name: aws-load-balancer-operator
namespace: openshift-cloud-credential-operator
spec:
providerSpec:
apiVersion: cloudcredential.openshift.io/v1
kind: AWSProviderSpec
statementEntries:
- action:
- ec2:DescribeSubnets
effect: Allow
resource: "*"
- action:
- ec2:CreateTags
- ec2:DeleteTags
effect: Allow
resource: arn:aws:ec2:*:*:subnet/*
- action:
- ec2:DescribeVpcs
effect: Allow
resource: "*"
secretRef:
name: aws-load-balancer-operator
namespace: aws-load-balancer-operator
serviceAccountNames:
- aws-load-balancer-operator-controller-manager
Create the CredentialsRequest
object by running the following command:
$ oc apply -f credentialsrequest.yaml
Create an OperatorGroup
object:
Create a YAML file that defines the OperatorGroup
object:
operatorgroup.yaml
fileapiVersion: 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:
$ oc apply -f operatorgroup.yaml
Create a Subscription
object:
Create a YAML file that defines the Subscription
object:
subscription.yaml
fileapiVersion: 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:
$ oc apply -f subscription.yaml
Get the name of the install plan from the subscription:
$ oc -n aws-load-balancer-operator \
get subscription aws-load-balancer-operator \
--template='{{.status.installplan.name}}{{"\n"}}'
Check the status of the install plan:
$ oc -n aws-load-balancer-operator \
get ip <install_plan_name> \
--template='{{.status.phase}}{{"\n"}}'
The output must be Complete
.