...
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
Code Block |
---|
$ 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:
Code Block |
---|
$ 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:
Code Block |
---|
$ kubectl config set-credentials openstackuser --auth-provider=openstack
$ kubectl config set-context --cluster=<yourclustername> --user=openstackuser openstackuser@<yourclustername>
$ kubectl config use-context openstackuser@<yourclustername> |