Kubernetes deployment artifacts for Canonical's MaaS.
Go to file
Scott Hussey a9301c146b [Fix] Ubuntu 18.04 broke default MAAS configs
- Add a selection to explicitly choose the Ubuntu release
- Add a gate for rack controller image sync before attempting to
  configure ephemeral image selection

Change-Id: Id8397d79fa5d136d78923f838c624283fad3d769
2018-05-02 21:58:08 -05:00
charts/maas [Fix] Ubuntu 18.04 broke default MAAS configs 2018-05-02 21:58:08 -05:00
images [Fix] Ubuntu 18.04 broke default MAAS configs 2018-05-02 21:58:08 -05:00
tools Add rudimentary Helm test 2018-01-06 19:10:39 -06:00
.gitreview Move MaaS chart into maas repo 2017-10-25 14:02:38 -05:00
LICENSE Initial commit 2017-10-19 11:42:23 -05:00
Makefile Update Makefile 2018-02-25 15:00:50 -05:00
README.md Add image cache sidecar 2017-12-04 12:50:30 -06:00

MaaS Helm Artifacts

This repository holds artifacts supporting the deployment of Canonical MaaS in a Kubernetes cluster.

Images

The MaaS install is made up of two required imags and one optional image. The Dockerfiles in this repo can be used to build all three. These images are intended to be deployed via a Kubernetes Helm chart.

MaaS Region Controller

The regiond Dockerfile builds a systemD-based Docker image to run the MaaS Region API server and metadata server.

MaaS Rack Controller

The rackd Dockerfile builds a systemD-based Docker image to run the MaaS Rack controller and dependent services (DHCPd, TFTPd, etc...). This image needs to be run in privileged host networking mode to function.

MaaS Image Cache

The cache image Dockerfile simply provides a point-in-time mirror of the maas.io image repository so that if you are deploying MaaS somewhere without network connectivity, you have a local copy of Ubuntu. Currently this only mirrors Ubuntu 16.04 Xenial and does not update the mirror after image creation.

Charts

Also provided is a Kubernetes Helm chart to deploy the MaaS pieces and integrates them. This chart depends on a previous deployment of Postgres. The recommended avenue for this is the Openstack Helm Postgres chart but any Postgres instance should work.

Overrides

Chart overrides are likely required to deploy MaaS into your environment

  • values.labels.rack.node_selector_key - This is the Kubernetes label key for selecting nodes to deploy the rack controller
  • values.labels.rack.node_selector_value - This is the Kubernetges label value for selecting nodes to deploy the rack controller
  • values.labels.region.node_selector_key - this is the Kubernetes label key for selecting nodes to deploy the region controller
  • values.labels.region.node_selector_value - This is the Kubernetes label value for selecting nodes to deploy the region controller
  • values.conf.cache.enabled - Boolean on whether to use the repo cache image in the deployment
  • values.conf.maas.url.maas_url - The URL rack controllers and nodes should use for accessing the region API (e.g. http://10.10.10.10:8080/MAAS)

Deployment Flow

During deployment, the chart executes the below steps:

  1. Initializes the Postgres DB for MaaS
  2. Starts a Pod with the region controller and optionally the image cache sidecar container
  3. Once the region controller is running, deploy a Pod with the rack controller and join it to the region controller.
  4. Initialize the configuration of MaaS and start the image sync
  5. Export an API key into a Kubernetes secret so other Pods can access the API if needed