Basic of kubernetes
Kubernetes is an open source platform that can manage the workloads and services by containerized it. Kubernetes provides a framework that run a distributed systems resiliently.
In here I will show you some tutorial for make a cluster with kubernetes. A kubernetes cluster consist of two type resources.
- Master : coordinates the cluster
- Nodes : running the applications
Now we have to go through Minikube website to doing some interactive tutorial.

First lets klik the start scenario button to begin the process. After you klik the start the page will change like in the picture. Klik the minikube start button to activate the minikube.

Then enter the command below to know the information about the hostname and the cluster.
$ hostname
$ kubectl cluster-info
And it will show like in the picture.

Now we have to create the deployment name kubernetes-bootcamp2 by using this command.
$ kubectl run kubernetes-bootcamp2 --image=docker.io/jocatalin/kubernets-bootcamp:v1 --port=8080
It will show like this.

After that lets check if the deployment was created, by using this command.
$ kubectl get deployment
$ kubectl get pods -o wide
It will show like this if the command is correct.


Next, we will add the nodeport by using this command.
$ kubectl expose deployments/kubernetes-bootcamp2 --type=”NodePort” --port 8080
And if its corret, it will show like this.

Then lets do some replicas with that image by typing this command.
$ kubectl scale deployments/kubernetes-bootcamp2 --replicas=3
If its success, it will show you something like this picture.

And after that lets check the pods.
$ kubectl pods -o wide

In the last picture it showed that the kubernetes-bootcamp2 has been replicated into 3.











