You are on page 1of 10

Download Virtual BOX on windows...

and install it

GO to kubernetes.io
Kubernetes Documentation
Tasks
Install Tools

https://minikube.sigs.k8s.io/docs/start/

install KUBECTL with command prompt

Install MINICUBE installer

Follow the command lines after installer setup....will take some time and it will install VM boot image and Kubernet
Start your cluster AND Open Virtual Box

Interact with your cluster

Initially, some services such as the storage-provisioner, may not yet be in a Runn

Create a sample deployment and expose it on port 8080:

It may take a moment, but your deployment will soon show up when you run:

The easiest way to access this service is to let minikube launch a web browser fo

For Deleting services


For deleting deployments

Create an NGINX Pod

Which image used on the pods

Kubernetes Concepts - https://kubernetes.io/docs/concepts/


Pod Overview- https://kubernetes.io/docs/concepts/workloads/pods/pod-overview/

What is the version of Kubernetes running on the nodes ?


What is the flavor and version of Operating System on which the Kubernetes nod

Which nodes are these pods placed on???

Check howmany containers in nginx pod?

Delete nginx pods

We use kubectl run command with --dry-run=client -o yaml option to create a manifest file

After that, using kubectl create -f command to create a resource from the manifest file :-

vi editor of linux

For creation of definition in yaml file


For updating defination of yaml files

edit anything in the pod file- with pods name--it will open vi editor

Check replica sets

Replicaset version

Replicaset edit coomad

Fix the original replica set new-replica-set to use the correct busybox image.
Either delete and recreate the ReplicaSet or Update the existing ReplicaSet and then delete all PODs, so new ones w

Make use of kubectl edit replicaset new-replica-set or the kubectl scale replicaset

cehck deployments on system


check image of deployments
and it will install VM boot image and Kubernetes
minikube start

kubectl get po -A minikube kubectl -- get po -A

minikube dashboard it will open chrome

kubectl create deployment hello-minikube --image=k8s.gcr.io/echoserver:1.4


kubectl expose deployment hello-minikube --type=NodePort --port=8080

kubectl get services hello-minikube

minikube service hello-minikube


minikube service hello-minikube --url
minikube status

kubectl get deployments


kubectl get nodes
kubectl get pods
kubectl describe nodes
kubectl describe pods
minikube kubectl -- --help

kubectl delete services hello-minikube


kubectl delete deployment hello-minikube

kubectl run nginx --image=nginx


Where after run ,you can write name of your
kubectl describe pods
kubectl version
kubectl get nodes -o wide

kubectl get pods -o wide

kubectl describe pods nginx

kubectl delete pods nginx

kubectl run redis --image=redis123 --dry-run=client -o yaml > redis-definition.yaml

kubectl create -f redis-definition.yaml

press I fro editing files, then for exit escape and :wq

kubectl create -f redis-definition.yaml


kubectl apply -f redis-definition.yaml

kubectl edit pod redis

kubectl get rs

kubectl create -f /root/replicaset-definition-1.yaml

kubectl delete replicaset replicaset-1


kubectl delete -f <file-name>.yaml
apps/v1

kubectl edit replicaset new-replica-set

sybox image.
icaSet and then delete all PODs, so new ones with the correct image will be created.

kubectl scale rs new-replica-set --replicas=5


kubectl edit replicaset new-replica-set, modify the replicas

kubectl get deployments


kubectl describe deployment frontend-deployment both these commands are same.
kubectl describe deployments frontend-deployment

kubectl get service


kubectl describe service
u can write name of your pod it can be anything,while after image= u need to write perfect name of image
ds are same.
Employee: Employee:
Name: Jacob Name: Jacob
Sex: Male Sex: Male
Age: 30 Age: 30
Title: Systems Engineer Title: Systems Engineer
Projects: Projects:
- Automation - Automation
- Support - Support
Payslips:
- Month: June
Wage: 4000
- Month: July
Wage: 4500
- Month: August
Wage: 4000
Program will not run if any word or letter is incorrect
Program will not run if Any word is small and written in capital,its case sensitive

You might also like