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

Опубликовано: 13 Февраль 2022
на канале: 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-



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


Смотрите видео kubernetes tutorial | ReplicaSet | Demo - Create ReplicaSet using kubectl commands онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь VSPARKZ 13 Февраль 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 864 раз и оно понравилось 10 людям.