Kubernetes is an open-source container-orchestration system for automating computer application deployment, scaling, and management. It was originally designed by Google and is now maintained by the Cloud Native Computing Foundation.
We are presenting the deploying process of kubernetes Cluster on Microhost Cloud Dashboard.
Step 1: First we should have the account of Microhost.com else we can register using the link .
Step 2:- First login into the Microhost dashboard and click on Kubernete option as per the screenshot.
Step 3:- While clicking on the Kubernete option, you will get the option to create the Cluster as per the below screenshot.
Step 4:- While clicking on deploy Cluster, will get the option to create the cluster in our desired location along with the node Configuration option as per the below screenshot.
Step 5:- After clicking on Deploy cluster , a new cluster will be created where we can see the mater and slave node details as per the screenshot.
Step 6:- After the successful creation, we need to download the kubeconfig file from the dashboard. Please go through the screenshot for more details.
Step 7:- After downloading the file on local system, You can manage the Kubernete Cluster through using Kubectl tool.
How to manage kubernete cluster on windows system.
Step 1: For windows system we need to download the client for bash environment. Hence we can download the Git Client using the link . Please download the setup and install it with its default values as per the screenshot.
Step 2: We need to download the package for kubectl ,which we can download using the link. Afterward, We need to configure the environment variable for kubectl so ,moving ahead first we need to create a folder named kube or it can be of any name in C drive where we have to copy the kubectl exe. As per the screenshot.
Step 3: Now we need to set the environment vaiable , so right click on This Pc option and click on properties. Afterward, click on Advance System Settings.
Step: While clicking on the above option, will get the output as below screenshot. We have to click on Environment Variable option.
Step : Afterward ,will get the below output .where we have to double click on path.
Step: While clicking on path we will get the option to enter the path where we have to click on New and there we will enter C:\kube as we have discussed earlier about folder creation. Please see the screenshot for reference.
Step 3: Now, we need to check that ,kubectl is working or not. We can run below command in cmd
kubectl version –client or kubectl
Step 4: Now we will import the kubernete config details using the following command in git client as per the screenshot.
How to manage kubernete cluster on Linux system.
Step 1: First we have to download the kubeconfig file from Microhost dashboard afterward, we need to upload the file on the server using FTP or we can also do this using wget command. Please have a look on the screenshot for reference.
Step 2: We have copied the kubeconfig file successfully. Now we can see that file by ls command as per the screenshot.
Step 4: Now we need to make Kubectl repo file to install the kubectl package in the server. We will copy and paste the below given code in the terminal and then press enter as per the screenshot below afterward we will run the command yum install -y kubelet kubeadm kubectl
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
Step 5: Now will check that kubectl is successfully installed or not, for that we will run kubectl command in the terminal and it will show the output as per the screenshot.
Step 6: Now in the last step we will export the config configuration in the server using below command:
How to manage kubernete on Ubuntu Desktop
Step 1: First we need to install the kubectl package in our Ubuntu machine. You can install the package using below commands.
# apt-get update
# apt install snapd
Step 2: Now , we will install kubectl using below command.
# snap install kubectl –classic
Step 3: After installing the package will check that kubectl is working or not. Please have a look on the below screenshot.
Step 4: We have successfully installed kubectl packages. Now will download the kubectl config file using browser as per the screenshot.
Step 5: I have deployed two kubernets cluster . However, I am using 18.104.22.168 cluster.
Step 6: Now we have downloaded the config file in root directory. We will import the cluster configurations using below command. Please have a look on the below screenshot.
# export KUBECONFIG kubeconfig_mks_48.yaml
Step 7: Now we can see the master & slave nodes using below command as per the above screenshot.
# kubectl get nodes
Thank You ☺