UNDER CONSTRUCTION - SERVICE IS NOT AVAILABLE YET
What?
Openstack Magnum is the Container Infrastructure service, which gives you the possibility to create container clusters like docker-swarm and kubernetes as native resource in Openstack. For more information about the service, and offical documentaions, read the user guide and the Magnum Wiki page
How?
First...
If you want to use the openstack CLI on your local system, use the lastet version of python-magnumclient from pip3. Some popular distros has an old version in its repositories, and are known to not work properly. Be sure that your version has this commit included. On NTNUs logon servers, you should not worry. We've made sure we have the correct version
Cluster Templates
To get you started, there is a few public Container Templates available in our cloud. These are verified working by us.
Name | OS | Master flavor | Node flavor |
---|---|---|---|
kubernetes-template | Fedora AtomicHost 29 | m1.small | t1.large |
kubernetes-template-ha | Fedora AtomicHost 29 | ||
docker-swarm-template | Fedora AtomicHost 29 | ||
docker-swarm-template-ha | Fedora AtomicHost 29 |
For more information, all templates can be listed with
$ openstack coe cluster template list # And then $ openstack coe cluster template show <id|name> # To view details
Private templates can be created by users
Create a cluster
TBA
Use a cluster
Docker Swarm
TBA
Kubernetes
You can interact with your kubernetes cluster with kubectl.
Install it first, if you don't already have it. FINN EN LINK HER KANSKJE
Source your cluster config:
$ mkdir -p ~/clusters/kubernetes-cluster $ $(openstack coe cluster config kubernetes-cluster --dir ~/clusters/kubernetes-cluster)
That should just work, and you can run kubectl commands as you please.
Our public kubernetes template has a keystone auth module enabled by default. That makes it possible to interact with your newly created cluster via the environment variables from your opencrc file. If you want that, configure kubectl to use openstack auth as follows:
$ kubectl config set-credentials openstackuser --auth-provider=openstack $ kubectl config set-context --cluster=<yourclustername> --user=openstackuser openstackuser@<yourclustername> $ kubectl config use-context openstackuser@<yourclustername>