Day-34 | KUBERNETES DEPLOYMENT | REPLICASETS |
ฝัง
- เผยแพร่เมื่อ 26 ก.พ. 2023
- 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
TH-cam: / @abhishekveeramalla
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.
🫡 learning on your age supebb
The way you explained this concept is even understandable to child. Great job bro🔥
🥳
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
Amazing .. Hearty congratulations 🎉
@@AbhishekVeeramalla thanks bro
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.
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 |
+----------------------+
Great
Sir, I must say k8s have replica concept but your replica not possible 👏👏👏👏
Haha
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.
I have no words to express my gratitude . Truly a legend.
Most welcome !!
Amazing explanation to all the concepts👏👏.. Thank you so much 🙂
thanks I didn't knew kubernetes flow in this way like deployment-> replica set-> pods
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 ,
Thanks a ton
Its Really amazing man, your explanations are clearly understandable and will make concept in depth
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
😎😎
Thanks so much Abhishek, this is so amazing. You really simplified Kubernetes. Great Job!
thanks alot
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.😊
Glad to hear that
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.
Means alot 😎
god for devops , learning in easyway is possible with your videos only far i seen.
You are welcome
Abhishek you are just crazy
Love your DevOps videos ❤❤
🚀🚀
Perfect explanation 🔥🔥🔥
I was so lost into the video, it is your amazing teaching sir.
Glad to hear that
Wowwww...... K8s is beautiful.. Thank you so much abhishek bro for teaching us ❤
My pleasure 😊
Awesome!!!! Explanation
Just Awesome 👍
Awesome explanation. Thanks a lot
Thanks abhi very simple way, we can understand the concept
# bappa bless you bhai
😤😤
Thank You Sir! This video was awesome 🔥
Most welcome!
extraordinary explanation - thank you @Abhishek
Thanks alot
learnt alot from you sir... THANKYOU
So nice of you
Thanks a lot, Abhishek Sir wonderful explanation 🤩🤗
My pleasure
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.
Thank You Abhishek , I learned something new Today
Glad to hear that
Always start your videos with like.. crystal clear explanation ❤️
can you please show us how to do auto scalling here
Thanks 🙏
very help full video thanks @abhishek i have a question
is it mendatory to create pod for any application or deployment is enough?
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?
Great learning experience brother....
Thanks brother
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
Crystal Clear :)
Thanks alot
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?
Thank you ^^
Thank You ❤
Welcome
Better way of explanation
Awesome
Hi Abhishek, if deployment itself gets deleted, including pods everything will be deleted. Is there any replica set kind of mechanism for the deployment?
Well explained 👌👍
Thank you 🙂
Excellent
welcome
Nice and useful
Glad you think so!
hey abhishek i am having an error i did minikube start it created node with no role. what to do ?
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 ?
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.
users will be accessing the app through loadbalancers, not directly through pods
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???
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 ?
Docker compose is used to create multiple containers .. it's different from pod
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.
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 ❤️❤️❤️
DB ka ek completely dedicated video banaonga bhai .. Thanks for the love .. Can I please request you to share the channel in your groups.
@@AbhishekVeeramalla
I will be waiting..
Definitely Bhai I will share in My all groups❣️❣️Aapke ki liye sara sar hajir rohonga..
Good job
Thanks
How to add new node to an existing k8s cluster?
Hi bro
When you’re going to start docker and k8s. Pls let me know. We need to learn from scratch soo
❤Thanks
Welcome
great explanation abhishek!!! how can we do the same for auto scaling, please enlighten us.
Sure .. I will explain
Is there any repo for the kubernetes Zero to hero series ??
Day-34 done ✅️
Keep going
Hey Abhishek, what is difference between apps/v1 and apps in apiVersion(for pod and deployment) in yaml file?
They are just API conventions.. every resource can create their unique APIGroup and API Version.
Abhishek bhai Docker-compose are also capable to run multiple container.. Is pod or docker compose are equivalent?
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
@@AbhishekVeeramalla that's Right.🥰🥰❤️
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?
Old are deleted
@@AbhishekVeeramalla I tried it. I have to first run delete deployment command and then apply deployment with new image.
Is it right way?
Nice one
Thanks
❤
❤️
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
Yes, soon
Thank you so much Abhishek, will be waiting.
Thanks
Yes
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.
U r 100 percent Correct
Replica set, Replication controller and Deployment are we can say it is POD controller.
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 ?
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.
Hello sir
which is the best approach for creating pod or any other objects
imprative or declerative plz ans .......
Declarative
@@AbhishekVeeramalla thanks for your respond
Hi abhishek, if someone deletes the pod, deployment will auto-heal it, but what if the case if someone deletes the deployment?
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
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..?
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.
Can we create a replicaset directly instead of deployment?
If Yes, then why we create a deployment instead of RS?
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.
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"
Please share your pod.yml
Hi Abhishek. Can you please tell the reasons why pods will get deleted other than network issue.
Ok, will try to do a video
in pod communication how ip address define it's by default or we can set that in real world?
Pls watch the next video on kubernetes services in the playlist
@@AbhishekVeeramalla ok sure !!
Are you covering helm also in this devops 45 days training
Yes .. mostly
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?
Watch the next videos in the series. Labels and selectors is explained very clearly during services video
Without using helm or Agrocd or any other tool, can I directly use K8s to deploy my application into production?
Yes i think we can use with kubectl from our local based on the authentication being setup
Yes ..
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
Thanks for the feedback
There is also something called as horizontal pod scaler
abhishek can you make a cheatsheet interview questions on kubernetes?
Noted
what if someone delete the deployment ??
What is namespace ?
Abhi anna one small doubt
Cant we delete pod permanently..??
kubectl delete deployment before applying this command set replicas=0 then excutes this command automatically deletes the pods
hello brother, can you create a post in linkedin how much computer networking required for devops
Sure
Or u can make a roadmap video on networking about protocols, ports and configuration.
what if i delete the Replica set, or Deployment will my PODS got deleted..??
Yes
Only if you delete Replica Set then PODS get deleted. Not for Replica Set. Correct me if I am wrong.
Hi Abhishek, what happens if someone deletes a replicaset?
a new replicaset will be created by the deployment
What is labels and selectors in deployment ??
Watch the complete playlist it is covered.
please do some real time deployments
Sure
Abhishek,How can I connect you?
Please check the description
Bro kindly explain the name space
Sure
anna niku shethakoti vandanalu anna intha chakaga maku class explain chesinandhuku
Thanks andi
19th Feb, 2024