kubernetes tutorial | ReplicaSet | Demo - Create ReplicaSet using kubectl commands

Published: 13 February 2022
on channel: VSPARKZ
864
10

Certified Kubernetes Administrator
*************************************
kubernetes tutorial | ReplicaSet | Demo - Create ReplicaSet using kubectl commands

Description:
*************
In this video, you are going to learn the concepts of ReplicaSet & a Demo on how to create ReplicaSet using kubectl commands (or) yaml manifests


What is ReplicaSet ?
Alternative to ReplicaSet – Deployment (Recommended)
How to create a ReplicaSet ?
ReplicaSet yaml manifest
How ReplicaSet Works ?
DEMO: Create the ReplicaSet using the Manifest file



For suggestions/feedback/doubts contact
email: [email protected]

Happy Learning !!!


===========================================================================================
USEFUL LINKS:
#############

ReplicaSet:
--------------------

https://kubernetes.io/docs/concepts/w...

API References:
--------------------------

https://kubernetes.io/docs/reference/...


Kubectl Command Reference:
------------------------------------------------

https://kubernetes.io/docs/reference/...

==========================================================================================
#cka #kubernetes #k8s #containers

DEMO STEPS:
***********

Step 1: Access & Inspect the Kubernetes Cluster
------------------------------------------------------------------------------

$ kubectl cluster-info

$ kubectl get nodes

$ kubectl get pods -n kube-system


Step 2: Create & Modify ReplicaSet Manifest using kubectl commands
----------------------------------------------------------------------------------------------------------------

$ kubectl create deployment myreplicaset --image=nginx --replicas=1 --dry-run=client -o yaml

Copy the output content and create a file ReplicaSet.yaml

Step 3: Create the ReplicaSet using the Manifest file (Replicas =1)
---------------------------------------------------------------------------------------------------------

$ kubectl apply -f ReplicaSet.yaml


Step 4: Increase the Replica count to 2 in the ReplicaSet
------------------------------------------------------------------------------------------

Either you can edit the resource itself using kubectl commands

Or you can modify the manifest yaml file and apply the same (Recommended)


Step 5: Delete a Replica/Pod and Observe the Behavior
-----------------------------------------------------------------------------------------

$ kubectl delete pod -podname-



========================================================================================================================


Watch video kubernetes tutorial | ReplicaSet | Demo - Create ReplicaSet using kubectl commands online without registration, duration hours minute second in high quality. This video was added by user VSPARKZ 13 February 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 864 once and liked it 10 people.