Juju Charm - Magnum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Corey Bryant eb2f62a1dc Add yoga bundles and release-tool syncs 3 months ago
actions Add initial charm code 11 months ago
files 21.04 libraries freeze for charms on master branch 10 months ago
lib Use custom PPA with Magnum packages 10 months ago
reactive Add unit_tests 11 months ago
templates Enable HA for Zaza deployments 11 months ago
tests Add yoga bundles and release-tool syncs 2 months ago
LICENSE Add initial charm code 11 months ago
README.md Update README.md 11 months ago
actions.yaml Add initial charm code 11 months ago
config.yaml Add initial charm code 11 months ago
icon.svg Add initial charm code 11 months ago
layer.yaml Fix repo string in layer.yaml 10 months ago
metadata.yaml Add impish to metadata.yaml 8 months ago
test-requirements.txt Sync release-tools 6 months ago
tox.ini Add xena bundles 4 months ago
wheelhouse.txt Updates to flip all libraries back to master 9 months ago



This charm provides the Magnum service for an OpenStack Cloud.

OpenStack Ussuri or later is required.


Magnum and the Magnum charm relies on services from a fully functional OpenStack Cloud and expects to be able to consume images from glance, consume certificate secrets from Barbican (preferably utilizing a Vault backend) and spin up Kubernetes clusters with Heat. Magnum requires the existence of the other core OpenStack services deployed via Juju charms, specifically: mysql, rabbitmq-server, keystone and nova-cloud-controller. The following assumes these services have already been deployed.

Required configuration

After deployment of the cloud, the domain-setup action must be run to configure required domains, roles and users in the cloud for Magnum clusters.

juju run-action magnum/0 domain-setup

Magnum generates and maintains a certificate for each cluster so that it can also communicate securely with the cluster. As a result, it is necessary to store the certificates in a secure manner. Magnum provides the following methods for storing the certificates and this is configured in /etc/magnum/magnum.conf in the section [certificates] with the parameter cert_manager_type Valid values are : [barbican, x509keypair, local]

trustee-domain - Domain used for COE

trustee-admin - Domain admin for the trustee-domain

Deploy a Kubernetes cluster

When Magnum deploys a Kubernetes cluster, it uses parameters defined in the ClusterTemplate and specified on the cluster-create command, for example:

openstack coe cluster template create k8s-cluster-template \
                           --image fedora-coreos-latest \
                           --keypair testkey \
                           --external-network public \
                           --dns-nameserver \
                           --flavor m1.small \
                           --docker-volume-size 5 \
                           --network-driver flannel \
                           --coe kubernetes
openstack coe cluster create k8s-cluster \
                      --cluster-template k8s-cluster-template \
                      --master-count 3 \
                      --node-count 8

Refer to the ClusterTemplate and Cluster sections for the full list of parameters.

This section covers common and/or important configuration options. See file config.yaml for the full list of options, along with their descriptions and default values. See the Juju documentation for details on configuring applications.

High availability

When more than one unit is deployed with the hacluster application the charm will bring up an HA active/active cluster.

There are two mutually exclusive high availability options: using virtual IP(s) or DNS. In both cases the hacluster subordinate charm is used to provide the Corosync and Pacemaker backend HA functionality.

See Infrastructure high availability in the OpenStack Charms Deployment Guide for details.


Please report bugs on Launchpad.

For general charm questions refer to the OpenStack Charm Guide.