How to Setup Kubernetes 1.4 on Ubuntu – POFTUT

How to Setup Kubernetes 1.4 on Ubuntu

Kubernetes is production grade container orchestration tool which automates container deployment, scaling and management. It is a google product that is used at google internally. Kubernetes newer outgrows because it is flexible. Kubernetes is opensource so there is no restriction, fees etc. Some of companies that use kubernetes is Pearson, Ebay, Wikimedia. Kubernetes have the ability scale applications on the fly.

Install Kubernetes

We start by downloading Google Repository keys for Ubuntu and adding them to key rings.

We add required repository to our sources.list

Update our application list to get kubernetes info.

And install kubernetes packages from google repositories.

We install all other systems those will join to the kubernetes cluster. We implement same command described in this kubernetes installation section.

Initialize Kubernetes Cluster

We will initialize the cluster head with the following command.

echo '

Our second system named poftut5. We have installed kubernetes as stated before. We will run “kubeadm join –token 3e313d.c5d75f78f4f9db27
” which is produced by poftut4.

On poftut4 we will check if poftut5 is joined to the cluster.

Good is seems everything is OK. We can see our two systems are joined to the kubernetes cluster  and their status is Ready.

To make systems in kubernetes jargon pods communication eachother. Install a daemong with the followinf command.

Deploying Test Application

We use a github project as our test application. We get the project with git.

LEARN MORE  How To Install Kali Docker Image To The Linux?

We use application provided deployment manifest like below

Here the containers are created. We can get info by issuing kubectl get pods.

ContainerCreating means it is progressing and current the application is not running.

After 2 min if we issue the command again we ca see that some of the pods are running and other are creating.

We can see frontend services status and get information about them by using describe command.

LEARN MORE  Google Dork or Search Hacking Tutorial

Delete Pod From Kubernetes Cluster

We have deployed our application successfully. But what if we want to destroy it. It similar to the install procedure just use delete command with kubectl.

How to Setup Kubernetes 1.4 on Ubuntu Infographic

How to Setup Kubernetes 1.4 on Ubuntu Infographic

How to Setup Kubernetes 1.4 on Ubuntu Infographic

Leave a Reply

Your email address will not be published. Required fields are marked *