-
Notifications
You must be signed in to change notification settings - Fork 2
Kubernetes and Openstack VM 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
-
Download openrc file for authentication from IU Cloud source TR-*-openrc.sh
-
Create SSH Private/Public key pair ssh-keygen -b 2048 -t rsa
-
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
-
Create Floating Point IP for Kubernetes cluster node for external access openstack floating ip create public
-
Update terraform variables in cluster.tfvars
- kube_service_addresses:
- nodelocaldns_ip:
- kube_pods_subnet:
- network_name:
- k8s_master_fips:
-
Execute Initialization and Apply Script bash terraform_init.sh bash terraform_apply.sh
-
SSH to Kubernetes Master ssh -i ubuntu@
-
Navigate to root directory of jetstream_kubespray repository
-
pip install -r requirements.txt && eval $(ssh-agent -s) && ssh-add ~/.ssh/id_rsa && ansible -i inventory/kubejetstream/hosts -m ping all
-
Navigate to k8-cluster.yml and update master IP
-
Execute bash k8s_install.sh
-
Verify the installation ssh -i ubuntu@ sudo su - kubectl get pods --all-namespaces
Milestones