Deploy the load-balancing service
Deploy the Load-balancing service to your RHOSO environment by creating security certificates and configuring the control plane.
- Overview
-
You must perform the steps in the following procedures to deploy the Load-balancing service (octavia):
- Create a CA passphrase for certificate generation and signing.
- Deploy the Load-balancing service.
The steps in these procedures provide sample values that you add to the required CRs. The actual values that you provide will depend on your particular hardware configuration and local networking policies.
Create a CA passphrase for certificate security Copy linkLink copied!
Create a CA passphrase secret to encrypt certificate keys and secure communication between amphora instances and Octavia controllers.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Confirm that the
SecretCR exists:$ oc describe secret octavia-ca-passphrase -n openstack
What to do next Copy linkLink copied!
Deploy the Load-balancing service Copy linkLink copied!
Deploy the Load-balancing service by configuring network attachments, enabling the octavia components, and uploading the amphora image.
Before you begin Copy linkLink copied!
- You have the
occommand line tool installed on your workstation. - You are logged on to a workstation that has access to the RHOSO control plane as a user with
cluster-adminprivileges.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- Wait until RHOCP creates the Load-balancing service resources. Run the following command to check the status:
$ oc wait octavia octavia --for condition=Ready- Sample output
-
You should see output similar to the following:
octavia.octavia.openstack.org/octavia condition met
- Confirm that the Load-balancing service pods are running:
$ oc get pods | grep octavia- Sample output
-
You should see output similar to the following:
octavia-api-78b56bb844-ngjhc 2/2 Running 0 12s octavia-healthmanager-f6hpx 1/1 Running 0 14s octavia-housekeeping-knwpf 1/1 Running 0 10s octavia-redis-redis-0 2/2 Running 0 20s octavia-rsyslog-4nkv8 1/1 Running 0 23s octavia-worker-l5hs4 1/1 Running 0 26s
- Access the remote shell for the OpenStackClient pod from your workstation:
$ oc rsh -n openstack openstackclient - Confirm that the networks
octavia-provider-netandlb-mgmt-netare present:$ openstack network list -f yaml- Sample output
-
- ID: 2e4fc309-546b-4ac8-9eae-aa8d70a27a9b Name: octavia-provider-net Subnets: - eea45073-6e56-47fd-9153-12f7f49bc115 - ID: 77881d3f-04b0-46cb-931f-d54003cce9f0 Name: lb-mgmt-net Subnets: - e4ab96af-8077-4971-baa4-e0d40a16f55aThe network,
octavia-provider-net, is the external provider network, and is limited to the RHOSO control plane. Thelb-mgmt-netnetwork connects the Load-balancing service to amphora instances.
- Exit the
openstackclientpod:$ exit