Skip to content

Kubernetes Setup

DakshaNagre edited this page Mar 29, 2020 · 6 revisions

1. Clone the code from

https://github.com/airavata-courses/codestorm.git

2. First we need to install the OpenStack client:

pip install python-openstackclient==3.16 python-magnumclient==2.10

3. Load API credentials

source openrc.sh

4. Create the cluster with Magnum

 git clone https://github.com/zonca/jupyterhub-deploy-kubernetes-jetstream 
 cd jupyterhub-deploy-kubernetes-jetstream
 cd kubernetes_magnum

5. We need to edit the create_network.sh create_template.sh create_cluster.sh and enter the relevant parameters and execute them.

 bash create_network.sh
 bash create_template.sh
 bash create_cluster.sh

6. Check status of the cluster:

 openstack coe cluster show _clustername_

7. Configure kubectl (kubectl version: v1.11.1)

 mkdir kubectl_secret
 cd kubectl_secret
 openstack coe cluster config _clustername_

8. Access the nodes:

 kubectl get nodes