It is significant to set up the Virtual Datacenter (vDC) formerly setting up Kubernetes. This can be measured as a set of machines where they can interconnect with each other via the network. For hands-on method, you can set up vDC on PROFITBRICKS if you do not have a physical or cloud infrastructure set up.
When the IaaS setup on any cloud is done, you must arrange the Master and the Node.
Note − the setup is revealed for Ubuntu machines. The similar can be set up on other Linux machines as well.
Installing Docker − Docker is obligatory on all the examples of Kubernetes. Resulting are the steps to install the Docker.
Step 1 − Log on to the machine with the root user account.
Step 2 − Update the package information. Make sure that the apt package is working.
Step 3 − Run the following commands.
Step 4 − Add the new GPG key.
Step 5 − Update the API package image.
After all the beyond tasks are complete, you can start with the actual installation of the Docker engine. On the other hand, earlier this you need to confirm that the kernel version you are using is correct.
Run the resulting commands to install the Docker engine.
Step 1 − Logon to the machine.
Step 2 − Update the package index.
Step 3 − Install the Docker Engine using the following command.
Step 4 − Start the Docker daemon.
Step 5 − To very if the Docker is installed, use the following command.
This desires to be installed on Kubernetes Master Machine. In order to install it, run the resulting commands.
In the beyond set of command −
Currently we are prepared to build Kubernetes. We need to install Kubernetes on all the machines on the cluster.
The beyond command will create a _output dir in the root of the kubernetes folder. Following, we can extract the directory into any of the directory of our choice /opt/bin, etc.
Then, comes the networking part wherein we must to essentially start with the setup of Kubernetes master and node. In order to do this, we will mark an entry in the host file which can be done on the node machine.
Resulting will be the output of the above command.
Currently, we will start with the real configuration on Kubernetes Master.
Mainly, we will start copying all the configuration files to their correct location.
The beyond command will copy all the configuration files to the essential location. Currently we will come back to the same directory where we have built the Kubernetes folder.
The resulting step is to update the copied configuration file under /etc. dir.
Configure etcd on master using the following command.
For this on the master, we need to edit the /etc/default/kube-apiserver file which we copied earlier.
We need to add the following content in /etc/default/kube-controller-manager.
Then, configure the kube scheduler in the corresponding file.
Once all the above tasks are complete, we are good to go ahead by bring up the Kubernetes Master. In order to do this, we will restart the Docker.
Kubernetes node will run two facilities the kubelet and the kube-proxy. Formerly moving ahead, we need to duplicate the binaries we downloaded to their essential folders where we need to configure the kubernetes node.
Use the similar method of copying the files that we did for kubernetes master. As it will merely run the kubelet and the kube-proxy, we will configure them.
Currently, we will copy the content to the appropriate dir.
We will organize the kubelet and kube-proxy conf files.
We will organize the /etc/init/kubelet.conf.
For kube-proxy, we will configure using the following command.
Lastly, we will restart the Docker service.
Currently we are completed with the configuration. You can check by running the resulting commands.
Kubernetes Related Interview Questions
|SQL Interview Questions||IBM Cloud Computing Infrastructure Architect V1 Interview Questions|
|Cloudera Interview Questions||Dock & Harbour Engineering Interview Questions|
|Docker (software) Interview Questions||OpenStack Interview Questions|
|Jenkins Interview Questions||MariaDB Interview Questions|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.