Book Image

Containers in OpenStack

Book Image

Containers in OpenStack

Overview of this book

Containers are one of the most talked about technologies of recent times. They have become increasingly popular as they are changing the way we develop, deploy, and run software applications. OpenStack gets tremendous traction as it is used by many organizations across the globe and as containers gain in popularity and become complex, it’s necessary for OpenStack to provide various infrastructure resources for containers, such as compute, network, and storage. Containers in OpenStack answers the question, how can OpenStack keep ahead of the increasing challenges of container technology? You will start by getting familiar with container and OpenStack basics, so that you understand how the container ecosystem and OpenStack work together. To understand networking, managing application services and deployment tools, the book has dedicated chapters for different OpenStack projects: Magnum, Zun, Kuryr, Murano, and Kolla. Towards the end, you will be introduced to some best practices to secure your containers and COE on OpenStack, with an overview of using each OpenStack projects for different use cases.
Table of Contents (17 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface

Installation of Kuryr


In this section, we will see how to install Kuryr. The prerequisites are as follows:

  • KeyStone
  • Neutron
  • A DB management system such as MySQL or MariaDB (for neutron and KeyStone)
  • Neutron agents for the vendor you choose
  • Rabbitmq if the neutron agents for your vendor require it
  • Docker 1.9+

The following steps run Kuryr inside a Docker container:

  1. Pull the upstream Kuryr libnetwork Docker image:
$ docker pull kuryr/libnetwork:latest
  1. Prepare Docker to find the Kuryr driver:
 $ sudo mkdir -p /usr/lib/docker/plugins/kuryr $ sudo curl -o /usr/lib/docker/plugins/kuryr/kuryr.spec \                     https://raw.githubusercontent.com/openstack/kuryr-
        libnetwork/master/etc/kuryr.spec$ sudo service docker restart
  1. Start the Kuryr container:
$ docker run --name kuryr-libnetwork \--net=host \--cap-add=NET_ADMIN \-e SERVICE_USER=admin \;-e SERVICE_PROJECT_NAME=admin \-e SERVICE_PASSWORD=admin \-e SERVICE_DOMAIN_NAME=Default \-e USER_DOMAIN_NAME=Default \-e IDENTITY_URL=http://127.0.0.1...