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

DevStack installation


DevStack is a set of extensible scripts used to quickly bring up a complete development OpenStack environment. DevStack is meant for only development and testing purposes. Please note that it should not be used in a production environment. DevStack installs all the core components by default which are Nova, Neutron, Cinder, Glance, Keystone, and Horizon.

Devstack is able to run on Ubuntu 16.04/17.04, Fedora 24/25, and CentOS/RHEL 7, as well as Debian and OpenSUSE.

In this section, we will set up a basic OpenStack environment on Ubuntu 16.04 and try out some commands to test various components in OpenStack.

  1. Add a stack user using the following method. You should run DevStack as a non-root user with sudo enabled:
$ sudo useradd -s /bin/bash -d /opt/stack -m stack 
  1. Now add the sudo privilege to the user.
$ echo "stack ALL=(ALL) NOPASSWD: ALL" | sudo tee 
        /etc/sudoers.d/stack$ sudo su - stack
  1. Download DevStack. DevStack by defaults installs the master version of the project...