Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ParameterComment
--docker-volume-sizeSize of cinder volume housing docker images and volumes. Defaults to 20GB for our public templates
--master-flavorInstance flavor of VMs running the master node. Defaults to m1.small for public templates
--flavorInstance flavor of VMs runnin worker nodes. Defaults to t1 m1.small for public templates
--labels

Override default labels for the give COE. Consult documentation for valid labels for each COE.

Note the labels set in the public templates are there for a reason (wink)

Also note that --labels does not merge, so if you want to add labels, please include the labels set in the template as well.


...

Code Block
openstack coe cluster create <clustername> --cluster-template docker-swarm-templatemode --master-count 1 --node-count 1 --keypair <your keypair>

...

Code Block
$ openstack coe cluster create <clustername> --cluster-template kubernetes-templatev1.15.12 --master-count 1 --node-count 1 --keypair <your keypair>

...

You can interact with your docker swarm with the docker CLI. This must of course be installed on your computer locally first. (noe om login-servere?), or you can use the NTNU login-servers (login.stud.ntnu.no for students or login.ansatt.ntnu.no for employees).

Code Block
$ mkdir -p ~/clusters/docker-swarm
$ $(openstack coe cluster config <your-cluster> --output-certs --dir ~/clusters/docker-swarm)

...

You can interact with your kubernetes cluster with kubectl. Install it first, if you don't already have it. Install-guide

(noe om login-servere?)Or you can use the NTNU login-servers (login.stud.ntnu.no for students or login.ansatt.ntnu.no for employees).

Source your cluster config:

...

Our public kubernetes template does not have the keystone auth module enabled by default. But if you chosse choose to enable it via label overrides, 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:

...