Skip to content

Assignment 4 Kubernetes without Rancher

Krishna Vamsi Guntupalli edited this page May 6, 2022 · 1 revision

We faced several issues to create a Kubernetes cluster using Rancher. Thanks to Teams CloudElves, Terra for their documentation which helped us in deploying custos.

Create an instance with public IP address in remote machine. Login and open the terminal in the machine to set up Ansible.
sudo su
ssh-keygen
Run the above command to create an SSH key.
source <openrc.sh>
openrc.sh file is copied to the instance.

Copy the openrc.sh file to this instance. Click here to download the openrc file.

Run the following commands by inserting the IP address of the instance created and cluster name, to setup 1 master and 2 Kubernetes clusters.
export IP=<IP-Address>
export CLUSTER=<Any-name>
bash instance-creation.sh
The cluster can be tested by using the following command.
kubectl get pods -A

After this we followed this detailed step by step documentation provided by the team CloudElves to attach volumes.