Go to file
Stacey Fletcher 455c3215db Add labels to Docker image
This ps allows labels to be added to the docker image at build
time

Change-Id: Iff40db4b34a549c976b0ac27f4ed0cba3bcb235c
2018-02-17 15:20:36 -06:00
2018-01-08 13:57:21 -06:00
2018-02-13 11:25:45 -05:00
2017-12-04 10:44:33 -06:00
2017-08-21 14:35:56 -05:00
2018-02-13 14:13:10 -05:00
2018-01-08 13:57:21 -06:00
2017-08-21 14:35:56 -05:00
2018-02-08 15:22:16 -06:00
2017-08-11 01:14:21 -05:00
2017-08-24 10:18:11 -05:00
2018-02-07 13:38:13 -06:00
2017-02-14 17:23:35 -05:00
2018-02-17 15:20:36 -06:00
2017-10-26 15:00:39 -05:00
2017-10-26 15:00:39 -05:00
2018-01-04 21:16:12 -06:00

drydock_provisioner

A python REST orchestrator to translate a YAML host topology to a provisioned set of hosts and provide a set of post-provisioning instructions.

See full documentation in docs/source/index.rst.

Required

  • Python 3.5+
  • A running instance of Postgres v9.5+
  • A running instance of Openstack Keystone w/ the v3 API enabled
  • A running instance of Canonical MaaS v2.2+
  • A running Kubernetes cluster with Helm initialized
  • Familiarity with the AT&T Community Undercloud Platform (UCP) suite of services

Building

This service is intended to be built as a Docker container, not as a standalone Python package. That being said, instructions are included below for building as a package and as an image.

Virtualenv

To build and install Drydock locally in a virtualenv first generate configuration and policy file templates to be customized

$ tox -e genconfig
$ tox -e genpolicy
$ virtualenv -p python3.5 /var/tmp/drydock
$ . /var/tmp/drydock/bin/activate
$ pip install -r requirements-lock.txt
$ pip install .
$ cp -r etc/drydock /etc/drydock

Docker image

$ docker build . -t drydock

Running

The preferred deployment pattern of Drydock is via a Helm chart to deploy Drydock into a Kubernetes cluster. Additionally use of the rest of the UCP services provides additional functionality for deploying (Armada) and using (Promenade, Deckhand) Drydock.

You can see an example of a full UCP deployment in the UCP Integration repository.

Stand up Kubernetes

Use the UCP Promenade tool for starting a self-hosted Kubernetes cluster with Kubernetes Helm deployed.

Deploy Drydock Dependencies

There are Helm charts for deploying all the dependencies of Dryodck. Use them for preparing your Kuberentes cluster to host Drydock.

Deploy Drydock

Ideally you will use the UCP Armada tool for deploying the Drydock chart with proper overrides, but if not you can use the helm CLI tool. The below are overrides needed during deployment

  • values.labels.node_selector_key: This is the kubernetes label assigned to the node you expect to host Drydock
  • values.conf.dryodck.maasdriver: This is URL Drydock will use to access the MAAS API (including the URL path)
  • values.images.drydock: The Drydock docker image to use
  • values.images.drydock_db_sync: The Drydock docker image to use
Description
A declarative host provisioning system.
Readme 10 MiB
Languages
Python 97.2%
Go 1.3%
Shell 0.8%
Makefile 0.3%
Smarty 0.3%