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

Managing COEs


Magnum provides seamless management for the life cycle of the cluster in OpenStack. The current operations are the basic CRUD operations, with some advance features such as the scaling of the cluster, setting up external load balancers, setting up a secure cluster with TLS, and so on. In this section, we will create a Swarm Cluster Template, use this template to create a Swarm cluster, and then, we will run some workloads on the cluster to verify our cluster status.

First, we will prepare our session to be able to use the various OpenStack clients including Magnum, Neutron, and Glance. Create a new shell and source the DevStack openrc script:

$ source /opt/stack/devstack/openrc admin admin

Create a keypair to use with the cluster template. This keypair will be used to ssh to the cluster nodes:

$ openstack keypair create --public-key ~/.ssh/id_rsa.pub testkey+-------------+-------------------------------------------------+| Field       | Value                                   ...