Kubernetes Chapter 1

Neeteesh Yadav
4 min readMay 16, 2020

Learn the basic concept of Kubernetes.

In this chapter, we learn about how to work on minikube and kubectl, and solve the one use case for Kubernetes.

Introduction of Kubernetes:-

Kubernetes management tool to manage the job of servers. Kubernetes are used to monitor the jobs and deployment of environments. Kubernetes are used to deploy in one environment 100 or more times.

Kubernetes are used to load balancing jobs, scale the job,scale-out the jobs.

Kubernetes is working on orchestration concepts and if need be for more service then automatically deploy the environment.

Minikube:-

Minikube software to provide the environment of Kubernetes. Minikube used to start the Kubernetes, stop the Kubernetes, and check the status of Kubernetes. Minikube launched on the Virtual box environment.

#Minikube status:-

Check the minikube status, minikube running mode or stopped mode.

If the minikube status is stopped then start the minikube use command:-

#Minikube Start

Show me the pods created by me or launch the job by me using the command:

#Kubectl get pods

This command shows all the pods created by me.

#Pods: In the Kubernetes pods means container.

If you want help with the Kubernetes to use this command:

#Kubectl — help

Solve the simple use case to launch one server and show the various operation of Kubernetes.

Create one pod using vimal13-apache-webserver-PHP

Vimal13-apache-webserver-PHP, it is a docker image in this image, deploy the webpage and website and run it.

Basic Kubernetes behind working Docker Containers to launch the pods and Container.

Create a pod using this command:

#kubectl run myweb — image=vimal13/apache-webserver-php

If you want to delete the pods use this command

#kubectl delete pods myweb

This command deletes the permanent pod/container.

if we want to create a deployment we can use this command to create:

#kubectl create deployment myweb — image=vimal13/apache-webserver-php

Deployment means to create a pod and use this pod to launch or run the number of pods. Kubernetes' main job is if we delete a job, then Kubernetes automatically launches one more pod.

If you want to share information about any pods, use this command:

#kubectl describe pods myweb

when we launch the pod then pod create a unique id look like myweb-67891234abc-456vhdgdh

When we find the Information about pod use, unique id, and also use deployment id for both or use full to describe pods.

if we want to check the version of Kubectl use this command:

#kubectl version

If you want to check how many deployment pods use this command:

#kubectl get deployments

This command shows all the deployment pods created by us.

If you want to show the service of pods and access your browser, use this command:

Minikube dashboard is the web GUI of Kubernetes.use this command to open:-

#Minikube Dashboard

In this blog basic information about kubectl and minikube.

Thanks for reading.

--

--

Neeteesh Yadav

Technical Enthusiast | MlOps(Machine learning + Operations)| DevOps Assembly Line| Hybrid Multi cloud