How to Setup Kubernetes 1.4 on Ubuntu

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/setup-kubernetes-1-4-ubuntu/
PINTEREST
PINTEREST
INSTAGRAM

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.

Our second system named poftut5. We have installed kubernetes as stated before. We will run “kubeadm join –token 3e313d.c5d75f78f4f9db27 192.168.122.137
” 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

LEARN MORE  How To Generate Self Signed Certificates

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

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  Find Out Other Users Operations

Delete Pod From Kubernetes Cluster

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

 

 

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/setup-kubernetes-1-4-ubuntu/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)