Day-34 | KUBERNETES DEPLOYMENT | REPLICASETS |
Support my work
www.buymeacoffee.com/abhishekprd FREE DEVOPS COURSE
• DEVOPS ZERO TO HERO CO...
KUBERNETES IS EASY
===================
Don't feel so ??? Watch the next 10 videos on the channel and you will second me .
DAY-33: KUBERNETES PODS
---------------------------------------------------------
What will you learn ?
1. Deployment vs ReplicaSet vs Pod
2. Auto Healing
3. Demo
Minikube Installation complete video
=============================
• Install Kubernetes on ...
Telegram channel
===============
telegram.me/abhishekveeramalla
About me:
-----------------
LinkedIn: / abhishek-veeramalla-77...
GitHub: github.com/iam-veeramalla
Medium: / abhishekveeramalla-av
KZread: / @abhishekveeramalla .
.
Disclaimer: Unauthorized copying, reproduction, or distribution of this video content, in whole or in part, is strictly prohibited. Any attempt to upload, share, or use this content for commercial or non-commercial purposes without explicit permission from the owner will be subject to legal action. All rights reserved.
Пікірлер: 170
Sir Iam happy to say that your way of teaching is amazing and better than off line teaching where i learned in vijayawada.Iam 61 years retired Govt.Senior Engineer and learning Devops and AWS cloud to start second innings not for money .Only to engage my self busy with some employment. Thanks once again for your efforts and support to lakhs of SWEs who are in Villages and not able to shift to city for coaching.
@venugopal1831
27 күн бұрын
🫡 learning on your age supebb
Your teaching skills has no match .. Thank U for providing it for free. Grateful. 🎉 What you are providing is saving time and brain damage in understanding other videos related k8s. Thank you for all those efforts.
Pod has running specification and can have multiple container. Side car container for service mesh. Service mesh is established by sidecar proxy. Deployment is capable of providing capabilities like autohealing and autoscaling. Deployment will create an intermediate resource called replicaset and then replicaset will create/rollout pod replicas.. So end of the day we are creating pods. Since replicaset is Kubernetes controller , it will implement autohealing and ensure that there are always two replicas of pods running. A Controller ensure desired state matches the current state in Kubernetes.
Don't have words. There are lots of peoples out there won't teach anything to anyone. Meanwhile like you sir absolutely gods gifted kid who is helping lakhs of peoples and soon in Crs. Got 2 offers finally. From Cloud engineer to DevOps Finally. Thanks again sir
@AbhishekVeeramalla
8 ай бұрын
Amazing .. Hearty congratulations 🎉
@normalman7076
8 ай бұрын
@@AbhishekVeeramalla thanks bro
This is for people who don't understand "Replica Set": -> In k8s, there is a concept called controllers (we saw this in architecture video). The main work of controller is to watching the POD is running in desired state or not. -> If not it sends the message to scheduler to create a new resource to achieve the desired state. -> One of the controller is called "Deployment". -> "Deployment" first creates "replica set(actual controller)" managed by "deployment" and replica set creates and manages the POD. -> Still confusing see the bellow picture: +-----------------------------+ | Deployment | | (desired state: 3) | +-----------------------------+ | | creates or updates | +----------------------------+ | ReplicaSet | | (desired state: 3) | +----------------------------+ | | creates or updates | +----------------------+ | Pod | (POD -> execution environment for the containers) +----------------------+ | | runs the containers | +----------------------+ | Container | +----------------------+
@AbhishekVeeramalla
Жыл бұрын
Great
I have no words to express my gratitude . Truly a legend.
@AbhishekVeeramalla
3 ай бұрын
Most welcome !!
Amazing explanation to all the concepts👏👏.. Thank you so much 🙂
I found your channel two days ago and WOW, it is amazing. very well and precise described, thanks a lot for making these series to help others learn complex topics in a simple way
@AbhishekVeeramalla
8 ай бұрын
😎😎
thanks bro, as expected u always come with something unique content with casual content than many youtube videos , eventually i learnt something new ,i always stay tuned to your channel ,
@AbhishekVeeramalla
Жыл бұрын
Thanks a ton
Its Really amazing man, your explanations are clearly understandable and will make concept in depth
Thanks so much Abhishek, this is so amazing. You really simplified Kubernetes. Great Job!
@AbhishekVeeramalla
Жыл бұрын
thanks alot
thanks I didn't knew kubernetes flow in this way like deployment-> replica set-> pods
god for devops , learning in easyway is possible with your videos only far i seen.
@AbhishekVeeramalla
11 ай бұрын
You are welcome
End of a good day with a very nice and informative video after watching your videos I can say Kubernetes is really easy to learn.😊
@AbhishekVeeramalla
Жыл бұрын
Glad to hear that
Abhishek you are just crazy Love your DevOps videos ❤❤
@AbhishekVeeramalla
9 ай бұрын
🚀🚀
wonderful teaching bro successfully understand difference pods, deployment, container and responsbilites of replica set👍
Perfect explanation 🔥🔥🔥
Awesome explanation. Thanks a lot
Awesome!!!! Explanation
Wowwww...... K8s is beautiful.. Thank you so much abhishek bro for teaching us ❤
@AbhishekVeeramalla
5 ай бұрын
My pleasure 😊
Thanks abhi very simple way, we can understand the concept # bappa bless you bhai
@AbhishekVeeramalla
7 ай бұрын
😤😤
I was so lost into the video, it is your amazing teaching sir.
@AbhishekVeeramalla
6 ай бұрын
Glad to hear that
The way you explained this concept is even understandable to child. Great job bro🔥
@AbhishekVeeramalla
Ай бұрын
🥳
Just Awesome 👍
Wow, i have learned about kubernetes from 4 different sources, i was still confused, but watching your kubernetes explanation is on point, i now fully understand the basics extremely well, and reason why we need kubernetes.
@AbhishekVeeramalla
4 ай бұрын
Means alot 😎
thank you Abishek
Thank You Sir! This video was awesome 🔥
@AbhishekVeeramalla
10 ай бұрын
Most welcome!
learnt alot from you sir... THANKYOU
@AbhishekVeeramalla
Жыл бұрын
So nice of you
Thank You Abhishek , I learned something new Today
@AbhishekVeeramalla
2 ай бұрын
Glad to hear that
extraordinary explanation - thank you @Abhishek
@AbhishekVeeramalla
Жыл бұрын
Thanks alot
Thanks a lot, Abhishek Sir wonderful explanation 🤩🤗
@AbhishekVeeramalla
5 ай бұрын
My pleasure
Great learning experience brother....
@AbhishekVeeramalla
Жыл бұрын
Thanks brother
Hi anna. Thanks a lot for your videos. I am able to understand all the concepts with ease. I request you to make a video on HPA and VPA to help understand auto scaling better.
Always start your videos with like.. crystal clear explanation ❤️ can you please show us how to do auto scalling here
@AbhishekVeeramalla
Жыл бұрын
Thanks 🙏
Hello Abhishek.. Thanks for the series and good explanation with deployment example. I was just wondering if replica set image can be deleted or killed. I tried in the lab but it said no such resources. If it can be killed then ts there a new replica-set created or we need to re-run the deployment.yml?? Have you encountered such situation?
Day 34 Successfully Done
Crystal Clear :)
@AbhishekVeeramalla
Жыл бұрын
Thanks alot
Better way of explanation
@AbhishekVeeramalla
Жыл бұрын
Awesome
Sir, I must say k8s have replica concept but your replica not possible 👏👏👏👏
@AbhishekVeeramalla
29 күн бұрын
Haha
Well explained 👌👍
@AbhishekVeeramalla
Жыл бұрын
Thank you 🙂
Thank you ^^
Excellent
@AbhishekVeeramalla
Жыл бұрын
welcome
Abhishek your awesome, I have a small query, I have developed magento app using Ubuntu has base image, in order to copy the files I have written a script in entry point, so every time new pod spins up it starts the same steps, is there any way where application files will be automatically copied, like official MySQL images which copies everything to pvc automatically
Thank You ❤
@AbhishekVeeramalla
2 ай бұрын
Welcome
Nice and useful
@AbhishekVeeramalla
Жыл бұрын
Glad you think so!
Hi..Is there a way to build the image in Kubernetes and use it in the creation of POD, instead of pulling the image from the registry? also, how do we specify our own image registry inside the pod.yaml or deployment.yaml file?
Good job
@AbhishekVeeramalla
Жыл бұрын
Thanks
Hi bro When you’re going to start docker and k8s. Pls let me know. We need to learn from scratch soo
Hi Abhishek, if deployment itself gets deleted, including pods everything will be deleted. Is there any replica set kind of mechanism for the deployment?
Hi brother... Your videos are more n more helpful to everyone... I have a small doubt... In case, in an interview, if they ask us to write a pod or deployment creation yaml file, how can I write??? Because In the interview they don't allow Google or something.. like how can we remember all these syntaxes???
Is there any repo for the kubernetes Zero to hero series ??
Nice one
@AbhishekVeeramalla
Жыл бұрын
Thanks
How to add new node to an existing k8s cluster?
great explanation abhishek!!! how can we do the same for auto scaling, please enlighten us.
@AbhishekVeeramalla
Жыл бұрын
Sure .. I will explain
Hi Abhishek, I am following all the steps mentioned in your video but I am getting this error when executing this command - kubectl apply -f pod.yaml Error - The connection to the server localhost:8080 was refused - did you specify right host or port ? Can anyone please help me ?
error parsing deployment.yaml: error converting YAML to JSON: yaml: line 5: mapping values are not allowed in this context this error im getting. pls help resolving it.
hey abhishek i am having an error i did minikube start it created node with no role. what to do ?
Abhishek sir just one question, as you are saying difference is that you write command in CLI in docker and in pod we write the commands in yaml file so the same is for docker in a docker-compose file ?
@AbhishekVeeramalla
Жыл бұрын
Docker compose is used to create multiple containers .. it's different from pod
Hai Abhishek thank you so much for your content and help. Abhishek can you make a video on how to Perform code quality using SonarQube and how Integration testing is done in the Devops process. This is my personal request to learn those important topics Abhishek. Please as per your free time on this course try to cover this topics also Abhishek. Thank you
@AbhishekVeeramalla
Жыл бұрын
Yes, soon
@sangativamsikrishna1691
Жыл бұрын
Thank you so much Abhishek, will be waiting. Thanks
@lingrajbiradar4416
Жыл бұрын
Yes
Day-34 done ✅️
@AbhishekVeeramalla
8 ай бұрын
Keep going
Hi @abhishek, at timestemp 24:44 - after the deletion of old POD when recplica controller creates the new POD will the IP Address and Port be the same? asking because if the user is accessing a website on POD1 then how will it be redirected to POD2 ? Thanks in advance.
@swapnilsingh7170
3 ай бұрын
users will be accessing the app through loadbalancers, not directly through pods
Agar hum application ke saath saatg database ko bhi deploy kare or replicaset banaye..let's 5 replica of one db.. O sare db hum actual mein product pe kaise manage karhe kubernetes ke THROUGH? O hum kaise kare.. Please Bhai Batado..Eh mein Sabse barha wala confusion hain!! One thing I tell You.I crack Junior DevOps Engineer interview Just watching your Videos and practising those Things. Buttom from My Heart You gave A Life. Now I can see Clearly All Things Of My future. You are really Inspiring...Keep Going.. Aishe savka vala karo allah aapka bala karega..doua hain hum sab logoka.. Love You Bhai From Bangladesh ❤️❤️❤️
@AbhishekVeeramalla
Жыл бұрын
DB ka ek completely dedicated video banaonga bhai .. Thanks for the love .. Can I please request you to share the channel in your groups.
@joymiah1038
Жыл бұрын
@@AbhishekVeeramalla I will be waiting.. Definitely Bhai I will share in My all groups❣️❣️Aapke ki liye sara sar hajir rohonga..
Great explanation. One question like if we change image file. And apply the kubectl deployment with new image. Will old pods be deleted or both will run at same time?
@AbhishekVeeramalla
Жыл бұрын
Old are deleted
@SunitaSonawane2007
Жыл бұрын
@@AbhishekVeeramalla I tried it. I have to first run delete deployment command and then apply deployment with new image. Is it right way?
Abhishek bhai Docker-compose are also capable to run multiple container.. Is pod or docker compose are equivalent?
@AbhishekVeeramalla
Жыл бұрын
Hi Joy, they are two different things. Pod is terminology in Kubernetes and you most of the times .. like I told you pod run a single container or at times multiple dependent containers. Whereas docker compose is related to docker and you can run even independent multiple containers .. there is no condition for docker compose. Note: docker compose cannot be used with k8s
@joymiah1038
Жыл бұрын
@@AbhishekVeeramalla that's Right.🥰🥰❤️
❤Thanks
@AbhishekVeeramalla
Жыл бұрын
Welcome
❤
@AbhishekVeeramalla
Жыл бұрын
❤️
Replica set, Replication controller and Deployment are we can say it is POD controller.
@AbhishekVeeramalla
Жыл бұрын
Replica set is like V2 of replication controller
Hello Abhishek Your videos are awesome very intresting. Here I've a doubt that what is the difference between healing and scaling ?
@AbhishekVeeramalla
8 ай бұрын
Please watch from the first episodds of kubernetes. You will miss this kind of basics if not. I have explained this in the first episode of kubernetes itself.
abhishek can you make a cheatsheet interview questions on kubernetes?
@AbhishekVeeramalla
6 ай бұрын
Noted
hi sir, can you please tell us what is meaning of -it in docker run command, as per my knowlege 'i; stands for interactive and 't' stands for terminal, please correct me if i am wrong.
@AbhishekVeeramalla
Жыл бұрын
U r 100 percent Correct
Hey Abhishek, what is difference between apps/v1 and apps in apiVersion(for pod and deployment) in yaml file?
@AbhishekVeeramalla
Жыл бұрын
They are just API conventions.. every resource can create their unique APIGroup and API Version.
What is namespace ?
Can we create a replicaset directly instead of deployment? If Yes, then why we create a deployment instead of RS?
@AbhishekVeeramalla
Жыл бұрын
it depends on your usage. If you don't want a controller to watch for your pod changes and rectify them you can ignore deployment.
Are you covering helm also in this devops 45 days training
@AbhishekVeeramalla
Жыл бұрын
Yes .. mostly
Hi abhishek, if someone deletes the pod, deployment will auto-heal it, but what if the case if someone deletes the deployment?
@AbhishekVeeramalla
Жыл бұрын
The problem is pod gets deleted due to many reasons not just someone deletes it .. so replicaset takes care of re creating it. But to your question .. You should adopt GitOps to recreation or autohealing
please do some real time deployments
@AbhishekVeeramalla
Жыл бұрын
Sure
Hi Abhishek..one doubt.. today i have attended one online workshop for Docker-compose. Is this same in Kubernetes deployment.yaml. are both are different..?
@gpadlearnmaths
2 ай бұрын
The similarity there is that you can pass in all the arguments in the yaml file rather than on the command line. Docker -compose helps in building re-usable scripts for running containers.
in pod communication how ip address define it's by default or we can set that in real world?
@AbhishekVeeramalla
10 ай бұрын
Pls watch the next video on kubernetes services in the playlist
@prakashbohara9909
10 ай бұрын
@@AbhishekVeeramalla ok sure !!
Hi Abhishek. Can you please tell the reasons why pods will get deleted other than network issue.
@AbhishekVeeramalla
Жыл бұрын
Ok, will try to do a video
Yes but why we are using the label, selectors and template ??? If copy and paste then what is the point of explaining this thing?? Why there is a selector in the Object spec?
@AbhishekVeeramalla
7 ай бұрын
Watch the next videos in the series. Labels and selectors is explained very clearly during services video
i got this error : Error from server (BadRequest): error when creating "pod1.yml": Pod in version "v1" cannot be handled as a Pod: strict decoding error: unknown field "metadata.spec"
@AbhishekVeeramalla
Жыл бұрын
Please share your pod.yml
what if someone delete the deployment ??
Abhi anna one small doubt Cant we delete pod permanently..??
@DAILY_JOB_UPDATES200
9 ай бұрын
kubectl delete deployment before applying this command set replicas=0 then excutes this command automatically deletes the pods
Without using helm or Agrocd or any other tool, can I directly use K8s to deploy my application into production?
@sandeepvemu794
Жыл бұрын
Yes i think we can use with kubectl from our local based on the authentication being setup
@AbhishekVeeramalla
Жыл бұрын
Yes ..
@nandithearcadewarrior2932
Жыл бұрын
Thank you for the clarification.
One small doubt, You cleared about auto healing but doesn't show how auto scalling happens, instead of that you increased pods by manually. Plz tell me anna
@AbhishekVeeramalla
Жыл бұрын
Thanks for the feedback There is also something called as horizontal pod scaler
hello brother, can you create a post in linkedin how much computer networking required for devops
@AbhishekVeeramalla
Жыл бұрын
Sure
@prakritimandal1722
Жыл бұрын
Or u can make a roadmap video on networking about protocols, ports and configuration.
What is labels and selectors in deployment ??
@AbhishekVeeramalla
Жыл бұрын
Watch the complete playlist it is covered.
Hi Abhishek, what happens if someone deletes a replicaset?
@AbhishekVeeramalla
Жыл бұрын
a new replicaset will be created by the deployment
what if i delete the Replica set, or Deployment will my PODS got deleted..??
@AbhishekVeeramalla
Жыл бұрын
Yes
@bharathgrandhi3434
9 ай бұрын
Only if you delete Replica Set then PODS get deleted. Not for Replica Set. Correct me if I am wrong.
Abhishek,How can I connect you?
@AbhishekVeeramalla
Жыл бұрын
Please check the description
anna niku shethakoti vandanalu anna intha chakaga maku class explain chesinandhuku
@AbhishekVeeramalla
5 ай бұрын
Thanks andi
Bro kindly explain the name space
@AbhishekVeeramalla
Жыл бұрын
Sure
19th Feb, 2024