Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
6c0c2b98
Commit
6c0c2b98
authored
2 years ago
by
Mark Goddard
Browse files
Options
Downloads
Patches
Plain Diff
docs: Octavia OVN provider
Change-Id: Ib3dba0a3741d918a189edfa43041207a59392f07
parent
4fa36cbe
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/source/conf.py
+1
-0
1 addition, 0 deletions
doc/source/conf.py
doc/source/reference/networking/octavia.rst
+45
-23
45 additions, 23 deletions
doc/source/reference/networking/octavia.rst
with
46 additions
and
23 deletions
doc/source/conf.py
+
1
−
0
View file @
6c0c2b98
...
@@ -110,6 +110,7 @@ openstack_projects = [
...
@@ -110,6 +110,7 @@ openstack_projects = [
'
octavia
'
,
'
octavia
'
,
'
oslo.messaging
'
,
'
oslo.messaging
'
,
'
oslotest
'
,
'
oslotest
'
,
'
ovn-octavia-provider
'
,
'
swift
'
,
'
swift
'
,
'
watcher
'
,
'
watcher
'
,
]
]
...
...
This diff is collapsed.
Click to expand it.
doc/source/reference/networking/octavia.rst
+
45
−
23
View file @
6c0c2b98
...
@@ -2,10 +2,10 @@
...
@@ -2,10 +2,10 @@
Octavia
Octavia
=======
=======
Octavia provides load balancing as a service. This guide covers
configuration
Octavia provides load balancing as a service. This guide covers
two providers:
of Octavia for the Amphora driver. See the :octavia-doc:`Octavia documentation
<>` for full details. The :octavia-doc:`installation guide
* Amphora
<install/install-ubuntu.html>` is a useful reference.
* OVN
Enabling Octavia
Enabling Octavia
================
================
...
@@ -16,14 +16,22 @@ Enable the octavia service in ``globals.yml``:
...
@@ -16,14 +16,22 @@ Enable the octavia service in ``globals.yml``:
enable_octavia: "yes"
enable_octavia: "yes"
Amphora provider
================
This section covers configuration of Octavia for the Amphora driver. See the
:octavia-doc:`Octavia documentation <>` for full details. The
:octavia-doc:`installation guide <install/install-ubuntu.html>` is a useful
reference.
Certificates
Certificates
============
------------
Octavia requires various TLS certificates for operation. Since the Victoria
Octavia requires various TLS certificates for operation. Since the Victoria
release, Kolla Ansible supports generating these certificates automatically.
release, Kolla Ansible supports generating these certificates automatically.
Option 1: Automatically generating Certificates
Option 1: Automatically generating Certificates
-----------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kolla Ansible provides default values for the certificate issuer and owner
Kolla Ansible provides default values for the certificate issuer and owner
fields. You can customize this via ``globals.yml``, for example:
fields. You can customize this via ``globals.yml``, for example:
...
@@ -45,7 +53,7 @@ The certificates and keys will be generated under
...
@@ -45,7 +53,7 @@ The certificates and keys will be generated under
``/etc/kolla/config/octavia``.
``/etc/kolla/config/octavia``.
Option 2: Manually generating certificates
Option 2: Manually generating certificates
------------------------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Follow the :octavia-doc:`octavia documentation
Follow the :octavia-doc:`octavia documentation
<admin/guides/certificates.html>` to generate certificates for Amphorae. These
<admin/guides/certificates.html>` to generate certificates for Amphorae. These
...
@@ -68,7 +76,7 @@ used to encrypt the CA key:
...
@@ -68,7 +76,7 @@ used to encrypt the CA key:
.. _octavia-network:
.. _octavia-network:
Networking
Networking
==========
----------
Octavia worker and health manager nodes must have access to the Octavia
Octavia worker and health manager nodes must have access to the Octavia
management network for communication with Amphorae.
management network for communication with Amphorae.
...
@@ -91,7 +99,7 @@ the traffic is also bridged to Open vSwitch on the controllers.
...
@@ -91,7 +99,7 @@ the traffic is also bridged to Open vSwitch on the controllers.
This interface should have an IP address on the Octavia management subnet.
This interface should have an IP address on the Octavia management subnet.
Registering OpenStack resources
Registering OpenStack resources
===============================
-------------------------------
Since the Victoria release, there are two ways to configure Octavia.
Since the Victoria release, there are two ways to configure Octavia.
...
@@ -103,7 +111,7 @@ The first option is simpler, and is recommended for new users. The second
...
@@ -103,7 +111,7 @@ The first option is simpler, and is recommended for new users. The second
option provides more flexibility, at the cost of complexity for the operator.
option provides more flexibility, at the cost of complexity for the operator.
Option 1: Automatic resource registration (default, recommended)
Option 1: Automatic resource registration (default, recommended)
================================================================
----------------------------------------------------------------
For automatic resource registration, Kolla Ansible will register the following
For automatic resource registration, Kolla Ansible will register the following
resources:
resources:
...
@@ -116,7 +124,7 @@ resources:
...
@@ -116,7 +124,7 @@ resources:
The configuration for these resources may be customised before deployment.
The configuration for these resources may be customised before deployment.
Customize Amphora flavor
Customize Amphora flavor
------------------------
~~~~~~~~~~~~~~~~~~~~~~~~
The default amphora flavor is named ``amphora`` with 1 VCPUs, 1GB RAM and 5GB
The default amphora flavor is named ``amphora`` with 1 VCPUs, 1GB RAM and 5GB
disk. you can customize this flavor by changing ``octavia_amp_flavor`` in
disk. you can customize this flavor by changing ``octavia_amp_flavor`` in
...
@@ -147,7 +155,7 @@ The following defaults are used:
...
@@ -147,7 +155,7 @@ The following defaults are used:
disk: 5
disk: 5
Customise network and subnet
Customise network and subnet
----------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Configure Octavia management network and subnet with ``octavia_amp_network`` in
Configure Octavia management network and subnet with ``octavia_amp_network`` in
``globals.yml``. This must be a network that is :ref:`accessible from the
``globals.yml``. This must be a network that is :ref:`accessible from the
...
@@ -209,7 +217,7 @@ Once the installation is completed, you need to :ref:`register an amphora image
...
@@ -209,7 +217,7 @@ Once the installation is completed, you need to :ref:`register an amphora image
in glance <octavia-amphora-image>`.
in glance <octavia-amphora-image>`.
Option 2: Manual resource registration
Option 2: Manual resource registration
======================================
--------------------------------------
In this case, Kolla Ansible will not register resources for Octavia. Set
In this case, Kolla Ansible will not register resources for Octavia. Set
``octavia_auto_configure`` to no in ``globals.yml``:
``octavia_auto_configure`` to no in ``globals.yml``:
...
@@ -241,7 +249,7 @@ as follows:
...
@@ -241,7 +249,7 @@ as follows:
existing Amphorae.
existing Amphorae.
Amphora flavor
Amphora flavor
--------------
~~~~~~~~~~~~~~
Register the flavor in Nova:
Register the flavor in Nova:
...
@@ -252,7 +260,7 @@ Register the flavor in Nova:
...
@@ -252,7 +260,7 @@ Register the flavor in Nova:
Make a note of the ID of the flavor, or specify one via ``--id``.
Make a note of the ID of the flavor, or specify one via ``--id``.
Keypair
Keypair
-------
~~~~~~~
Register the keypair in Nova:
Register the keypair in Nova:
...
@@ -261,7 +269,7 @@ Register the keypair in Nova:
...
@@ -261,7 +269,7 @@ Register the keypair in Nova:
openstack keypair create --public-key <path to octavia public key> octavia_ssh_key
openstack keypair create --public-key <path to octavia public key> octavia_ssh_key
Network and subnet
Network and subnet
------------------
~~~~~~~~~~~~~~~~~~
Register the management network and subnet in Neutron. This must be a network
Register the management network and subnet in Neutron. This must be a network
that is :ref:`accessible from the controllers <octavia-network>`. Typically
that is :ref:`accessible from the controllers <octavia-network>`. Typically
...
@@ -281,7 +289,7 @@ a VLAN provider network is used.
...
@@ -281,7 +289,7 @@ a VLAN provider network is used.
Make a note of the ID of the network.
Make a note of the ID of the network.
Security group
Security group
--------------
~~~~~~~~~~~~~~
Register the security group in Neutron.
Register the security group in Neutron.
...
@@ -295,7 +303,7 @@ Register the security group in Neutron.
...
@@ -295,7 +303,7 @@ Register the security group in Neutron.
Make a note of the ID of the security group.
Make a note of the ID of the security group.
Kolla Ansible configuration
Kolla Ansible configuration
---------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~
The following options should be added to ``globals.yml``.
The following options should be added to ``globals.yml``.
...
@@ -316,7 +324,7 @@ Now deploy Octavia:
...
@@ -316,7 +324,7 @@ Now deploy Octavia:
.. _octavia-amphora-image:
.. _octavia-amphora-image:
Amphora image
Amphora image
=============
-------------
It is necessary to build an Amphora image. On CentOS / Rocky 9:
It is necessary to build an Amphora image. On CentOS / Rocky 9:
...
@@ -374,10 +382,10 @@ Register the image in Glance:
...
@@ -374,10 +382,10 @@ Register the image in Glance:
the tag is "amphora", octavia uses the tag to determine which image to use.
the tag is "amphora", octavia uses the tag to determine which image to use.
Debug
Debug
=====
-----
SSH to an amphora
SSH to an amphora
-----------------
~~~~~~~~~~~~~~~~~
login into one of octavia-worker nodes, and ssh into amphora.
login into one of octavia-worker nodes, and ssh into amphora.
...
@@ -391,14 +399,14 @@ login into one of octavia-worker nodes, and ssh into amphora.
...
@@ -391,14 +399,14 @@ login into one of octavia-worker nodes, and ssh into amphora.
octavia-worker nodes.
octavia-worker nodes.
Upgrade
Upgrade
=======
-------
If you upgrade from the Ussuri release, you must disable
If you upgrade from the Ussuri release, you must disable
``octavia_auto_configure`` in ``globals.yml`` and keep your other octavia
``octavia_auto_configure`` in ``globals.yml`` and keep your other octavia
config as before.
config as before.
Development or Testing
Development or Testing
======================
----------------------
Kolla Ansible provides a simple way to setup Octavia networking for
Kolla Ansible provides a simple way to setup Octavia networking for
development or testing, when using the Neutron Open vSwitch ML2 mechanism
development or testing, when using the Neutron Open vSwitch ML2 mechanism
...
@@ -414,3 +422,17 @@ Add ``octavia_network_type`` to ``globals.yml`` and set the value to ``tenant``
...
@@ -414,3 +422,17 @@ Add ``octavia_network_type`` to ``globals.yml`` and set the value to ``tenant``
octavia_network_type: "tenant"
octavia_network_type: "tenant"
Next,follow the deployment instructions as normal.
Next,follow the deployment instructions as normal.
OVN provider
============
This section covers configuration of Octavia for the OVN driver. See the
:octavia-doc:`Octavia documentation <>` and :ovn-octavia-provider-doc:`OVN
Octavia provider documentation <>` for full details.
To enable the OVN provider, set the following options in ``globals.yml``:
.. code-block:: yaml
octavia_provider_drivers: "ovn:OVN provider"
octavia_provider_agents: "ovn"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment