Kubernetes now available on Nectar!

We’ve just deploy OpenStack Magnum (Container Infrastructure as a Service) on Nectar cloud. This allows a user to spin up a container cluster (kubernetes or docker swarm) on Nectar.
We are in the process of coming out with official documentation, but in the meantime if you would like to test drive it, here are the steps to do so.
First of all, you need the following
  1. Quotas for
    • Floating IP
    • Network
    • Subnet
    If you have requested for floating IPs for your project, you will be fine. If not, request for floating ip quota.

Creating a Cluster

You can create a cluster using either the Dashboard or CLI tools.

Using Dashboard

  1. Log on to the dashboard
  2. Navigate to Container Infra.
  3. Click on Clusters, then Create Cluster.
  4. Give your cluster a name.
  5. Choose a cluster template. We have pre-defined global templates (in format kubernetes-{az}) to help you get started easier. Choose the template that you want your cluster to be in.
  6. Go to the Misc tab, and select your Keypair.
  7. Click Submit.

Using CLI

  1. Install python-magnumclient. You need python-magnumclient >= 2.9.0
    pip install python-magnumclient
    
  2. Create a template
    openstack coe cluster template create --coe kubernetes \
    --image fedora-atomic-latest --external-network <floating-ip-network-id> \
    --master-flavor m2.xsmall --flavor m2.small --dns-nameserver 172.26.21.141 \
    --docker-storage-driver overlay --public mytemplate
    
  3. Boot a cluster
    openstack coe cluster create --cluster-template mytemplate \
    --keypair <mykey> mycluster
    

Operating your Cluster

Once your cluster is up (NOTE: It takes about 20 mins for a cluster to build), you can control it using kubectl.
  1. Set up the credentials to connect to the cluster. Firstly, create an config dir
    mkdir ~/kubernetes/
    cd ~/kubernetes/
    
  2. Create the config files
    openstack coe cluster config mycluster
    
  3. Set the ENV by copying the output from the previous command
    export KUBECONFIG=$HOME/kubernetes/config
    
  4. Use kubectl to connect to it
    kubectl get all
    
Please send feedback!

Comments

Popular posts from this blog

Understanding telemetry services in Nectar cloud

Getting capacity and usage information out of Openstack Placement

A brief history of OVN migration