Deploy Kubernetes on Microhost cloud dashboard

Deploy Kubernetes on Microhost cloud dashboard

 Introduction:-

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

[kubernetes]

name=Kubernetes

baseurl=https://packages.cloud.google.com/yum/repos/kubernetes-el7-x86_64

enabled=1

gpgcheck=1

repo_gpgcheck=1

gpgkey=https://packages.cloud.google.com/yum/doc/yum-key.gpg https://packages.cloud.google.com/yum/doc/rpm-package-key.gpg

EOF



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: 

export KUBECONFIG=/root/kubernetfilename.yaml



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 103.150.136.227 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 ☺


    • Related Articles

    • Microhost Cloud Dashboard

      Introduction:  Microhost is the first cloud infrastructure provider in INDIA, which delivers different kind of cloud products. We are going to explain all the product and feature individually. So let’s get started.      While login into Microhost ...
    • Steps to deploy Tally on Microhost Cloud

      1. Access URL https://www.microhost.com/tallycloud and enter your details, your name, email and password for microhost cloud platform access.   2. Once you fill your name, email id and password, click on create tally server. 3. It will redirect you ...
    • How to create Microhost cloud server

      A cloud server is a virtual server that runs on a cloud computing environment (rather than a physical server). It is built and hosted through the Internet and can be accessed on a cloud computing platform from a remote protocol. Also called virtual ...
    • How to deploy a cloud server with custom ISO

      Why do we require custom ISO ? To download and use the Custom/specific OS according to the client requirements . A Custom ISO file is an archive file that contains an identical copy (or image) of data found on an optical disc, like a CD or DVD. For ...
    • Microhost Cloud Firewall

      Cloud Firewall is an extra layer of security for the cloud server which prevent unauthorized/unwanted traffic for your cloud server. It will only allow the traffic which is known to it. Inbound and Outbound both connection can be controlled through ...