top of page
  • Phani Kumar Arava

Test Drive Caasp2 beta on Openstack Cloud

A potential customer wanted to have a look at Caasp 2 beta. I was trying the steps provided in documentation, but i quickly realized that the platform could be setup on Openstack Cloud as quickly as possible. (Setup everything under 10 mins)

A bit of user-data injection into the node and volla we are ready.

Step1 : Download the Caasp 2.0 beta Openstack Cloud image https://goo.gl/d9bddi . Download only the SUSE-CaaS-Platform-2-OpenStack-Cloud.x86_64-2.0.0-RC1.qcow2 file. Upload it to your glance

# openstack image create --private --protected --disk-format qcow2 --container-format bare --file SUSE-CaaS-P latform-2-OpenStack-Cloud.x86_64-2.0.0-RC1.qcow2 suse-casp-2

Step 2: Setup the user-data files for admin and cluster worker node files

root@xxxx:~ # cat /root/caasp-admin #cloud-config debug: True disable_root: False suse_caasp: role: admin

root@xxxx:~ # cat /root/caasp-node #cloud-config debug: True disable_root: False suse_caasp: role: cluster admin_node: caasp-admin

admin_node: parameter value will be same as the instance id of caasp admin node. Also be careful of the spaces . (These are yaml files, worry about spaces..)

Step 3: Now deploy your admin, master and three worker nodes. Here is deploy-caasp.sh

root@xxxx:~ # cat /root/deploy_caasp.sh #!/usr/bin/bash

source /root/.openrc nova boot --flavor m1.medium --image suse-casp-2 --key-name cloud --security-group Allow-SSH,default,Allow-Salt,Allow-HTTP caasp-admin --user-data /root/caasp-admin

nova boot --flavor m1.medium --image suse-casp-2 --key-name cloud --security-group Allow-SSH,default,Allow-Salt caasp-master --user-data /root/caasp-node

nova boot --flavor m1.medium --image suse-casp-2 --key-name cloud --security-group Allow-SSH,default,Allow-Salt caasp-worker-1 --user- data /root/caasp-node

nova boot --flavor m1.medium --image suse-casp-2 --key-name cloud --security-group Allow-SSH,default,Allow-Salt caasp-worker-2 --user-data /root/caasp-node

nova boot --flavor m1.medium --image suse-casp-2 --key-name cloud --security-group Allow-SSH,default,Allow-Salt caasp-worker-3 --user-data /root/caasp-node

Once you deploy your cluster, you should be able to see your caasp-admin, caasp-master and caasp-worker nodes running on your cluster and opening the admin node HTTP interface should show you the following screen

Sign-Up with a new admin user

Specify the dashboard location (caasp-admin)

You should see all the nodes in Pending Nodes list

Click Accept All nodes

Select your master and worker nodes

Bootstrap your cluter

Your kubernetes cluster is ready and kicking !!!

150 views0 comments
bottom of page