Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Kubernetes and Openstack VM Setup

Vishesh edited this page Apr 5, 2021 · 2 revisions

Our setup

Our setup of the Kubernetes consists of a master and two worker nodes, the IPs for which are given below: Master: 149.165.157.145 Worker1: 149.165.156.181 Worker2: 149.165.157.30

Steps to create VMs on Openstack

  1. Download openrc file for authentication from IU Cloud source TR-*-openrc.sh

  2. Create SSH Private/Public key pair ssh-keygen -b 2048 -t rsa

  3. Clone Panorama repository and Checkout to branch git clone https://github.com/airavata-courses/Panorama.git && git checkout dev-automation && git clone https://github.com/zonca/jetstream_kubespray && cd jetstream_kubespray

  4. Create Floating Point IP for Kubernetes cluster node for external access openstack floating ip create public

  5. Update terraform variables in cluster.tfvars

  • kube_service_addresses:
  • nodelocaldns_ip:
  • kube_pods_subnet:
  • network_name:
  • k8s_master_fips:
  1. Execute Initialization and Apply Script bash terraform_init.sh bash terraform_apply.sh

  2. SSH to Kubernetes Master ssh -i ubuntu@

Steps to setup Kubernetes

  1. Navigate to root directory of jetstream_kubespray repository

  2. pip install -r requirements.txt && eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa && ansible -i inventory/kubejetstream/hosts -m ping all

  3. Navigate to k8-cluster.yml and update master IP

  4. Execute bash k8s_install.sh

  5. Verify the installation ssh -i ubuntu@ sudo su - kubectl get pods --all-namespaces

Clone this wiki locally