Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 14 additions & 8 deletions docs/how-to/features/load-balancer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@ OpenStack load balancing service. Two provider backends are supported:
Enabling Load Balancer
----------------------

.. note::

The :doc:`Vault </how-to/features/vault>` and :doc:`Secrets </how-to/features/secrets>`
features are dependencies of the Load Balancer feature and should be enabled
prior to enabling Octavia.

To enable Load Balancer, run the following command:

.. literalinclude:: ../snippets/load-balancer.task.sh
.. literalinclude:: ../snippets/loadbalancer.task.sh
:language: bash
:start-after: [docs-view:enable-load-balancer]
:end-before: [docs-view:enable-load-balancer-end]
:start-after: [docs-view:enable-loadbalancer]
:end-before: [docs-view:enable-loadbalancer-end]

This enables Octavia with the OVN provider. Use the OpenStack CLI to
manage load balancers. See the upstream `Octavia documentation
Expand Down Expand Up @@ -90,12 +96,12 @@ option:
- Description
* - Enable Octavia Amphora provider?
- ``y``
- Activates the Amphora VM-based load-balancer backend.
- Activates the Amphora VM-based loadbalancer backend.
* - Amphora image tag
- ``octavia-amphora``
- Glance tag Octavia uses to locate the Amphora VM image. An image
with this tag must exist in Glance before Octavia can create
load-balancer instances.
loadbalancer instances.
* - Auto-create Amphora image?
- ``n``
- If enabled, Sunbeam downloads the upstream Octavia Amphora image
Expand Down Expand Up @@ -214,10 +220,10 @@ Disabling Load Balancer

To disable Load Balancer, run the following command:

.. literalinclude:: ../snippets/load-balancer.task.sh
.. literalinclude:: ../snippets/loadbalancer.task.sh
:language: bash
:start-after: [docs-view:disable-load-balancer]
:end-before: [docs-view:disable-load-balancer-end]
:start-after: [docs-view:disable-loadbalancer]
:end-before: [docs-view:disable-loadbalancer-end]

Usage
-----
Expand Down
17 changes: 0 additions & 17 deletions docs/how-to/snippets/load-balancer.task.sh

This file was deleted.

17 changes: 17 additions & 0 deletions docs/how-to/snippets/loadbalancer.task.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# @depends: tutorial/snippets/get-started-with-openstack.task.sh

# [docs-view:enable-loadbalancer]
sunbeam enable loadbalancer
# [docs-view:enable-loadbalancer-end]

# [docs-exec:enable-loadbalancer]
sg snap_daemon 'sunbeam enable loadbalancer'
# [docs-exec:enable-loadbalancer-end]

# [docs-view:disable-loadbalancer]
sunbeam disable loadbalancer
# [docs-view:disable-loadbalancer-end]

# [docs-exec:disable-loadbalancer]
sg snap_daemon 'sunbeam disable loadbalancer'
# [docs-exec:disable-loadbalancer-end]
Loading