Skip to content
Snippets Groups Projects
kuryr-guide.rst 1.72 KiB
Newer Older
Hui Kang's avatar
Hui Kang committed
Kuryr in Kolla
==============

"Kuryr is a Docker network plugin that uses Neutron to provide networking
services to Docker containers. It provides containerized images for the common
Neutron plugins. Kuryr requires at least Keystone and neutron. Kolla makes
Hui Kang's avatar
Hui Kang committed
kuryr deployment faster and accessible.

Requirements
Hui Kang's avatar
Hui Kang committed

* A minimum of 3 hosts for a vanilla deploy

Preparation and Deployment
~~~~~~~~~~~~~~~~~~~~~~~~~~
Hui Kang's avatar
Hui Kang committed

To allow Docker daemon connect to the etcd, add the following in the
``docker.service`` file.

.. code-block:: ini
Hui Kang's avatar
Hui Kang committed

   ExecStart= -H tcp://172.16.1.13:2375 -H unix:///var/run/docker.sock --cluster-store=etcd://172.16.1.13:2379 --cluster-advertise=172.16.1.13:2375
Hui Kang's avatar
Hui Kang committed

Hui Kang's avatar
Hui Kang committed

The IP address is host running the etcd service. ```2375``` is port that
allows Docker daemon to be accessed remotely. ```2379``` is the etcd listening
port.
Hui Kang's avatar
Hui Kang committed

By default etcd and kuryr are disabled in the ``group_vars/all.yml``.
In order to enable them, you need to edit the file globals.yml and set the
following variables
Hui Kang's avatar
Hui Kang committed

.. code-block:: yaml
Hui Kang's avatar
Hui Kang committed

   enable_etcd: "yes"
   enable_kuryr: "yes"

.. end
Hui Kang's avatar
Hui Kang committed

Deploy the OpenStack cloud and kuryr network plugin

.. code-block:: console

   kolla-ansible deploy
Hui Kang's avatar
Hui Kang committed

Hui Kang's avatar
Hui Kang committed

Create a Virtual Network
~~~~~~~~~~~~~~~~~~~~~~~~
Hui Kang's avatar
Hui Kang committed

.. code-block:: console
Hui Kang's avatar
Hui Kang committed

   docker network create -d kuryr --ipam-driver=kuryr --subnet=10.1.0.0/24 --gateway=10.1.0.1 docker-net1

.. end
Hui Kang's avatar
Hui Kang committed

To list the created network:

.. code-block:: console

   docker network ls
Hui Kang's avatar
Hui Kang committed

Hui Kang's avatar
Hui Kang committed

hwc's avatar
hwc committed
The created network is also available from OpenStack CLI:
Hui Kang's avatar
Hui Kang committed

.. code-block:: console

   openstack network list
Hui Kang's avatar
Hui Kang committed

Hui Kang's avatar
Hui Kang committed

For more information about how kuryr works, see
`kuryr (OpenStack Containers Networking)
<https://docs.openstack.org/kuryr/latest/>`__.