Example – a Python-based web server

In the following example, we will set up a new Magnum bay running Mesos as COE. The Mesos cluster will deploy a simple python web server running on a Docker container and listening on port 8080, as follows:

  1. Create a new Magnum cluster template to deploy a Swarm cluster:
 # magnum cluster-template-create --name coe-mesos-template \                                 --image-id fedora-latest \                                 --keypair-id pp_key \                                --external-network-id pub-net\                                 --dns-nameserver 8.8.8.8 \                                 --flavor-id m1.small \                                 --docker-volume-size 4 \                                 --network-driver docker \                                 --coe mesos  
The previous command line assumes the existence of an image fedora_atomic in the Glance image repository, a key pair named pp_key, and an external Neutron network named pub-net. Make ...

Get Extending OpenStack now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.