Тёмный

Kubernetes YAML File Explained - Deployment and Service | Kubernetes Tutorial 19 

TechWorld with Nana
Подписаться 1,1 млн
Просмотров 286 тыс.
50% 1

Опубликовано:

 

27 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 273   
@TechWorldwithNana
@TechWorldwithNana 4 года назад
0:27 - 3 parts of a Kubernetes configuration file 0:45 - metadata and specification 1:54 - status 3:35 - format of configuration file 4:46 - blueprint for pods (template) 5:59 - connecting services to deployments and pods (label & selector & port) 6:18 - connecting deployment to pods 6:59 - connecting services to deployments 7:37 - ports 8:50 - demo 👉🏼 For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. Please don't forget to subscribe and give me a thumbs up if you liked my video 😊
@bhaskar6705
@bhaskar6705 4 года назад
TechWorld with Nana -Really simply awesome thank you so much for you ...will you able to help how to start working Kubernetes where I need install easy way will you please help me any doc or video
@nihilidron
@nihilidron 2 года назад
You rock, Nana. This brought so much light in my rough start with k8s . Thanks :)
@ojaschopade1813
@ojaschopade1813 Год назад
Hi Nana, can you explain why restart policy for deployment object can not be set to Never?
@falsepositive01
@falsepositive01 6 месяцев назад
Have you been making malware analysis videos before?
@zackyang123
@zackyang123 3 года назад
Nana, without sarcasm -- you are doing god's work thank you. K8s docs do not cut it for actually understanding anything.
@rhoonah5849
@rhoonah5849 3 года назад
Agreed on both points. I have been ripping what remains of my hair out of my head just trying to understand the keys in the YML file.
@TimRichardson_GrowthPath
@TimRichardson_GrowthPath Год назад
it's kind of ridiculous how good this series is. Amazingly good. If this had been my first step towards Kubernetes, I would have saved quite a lot of time. Nana has a video on why she chose devops as her career, which I have not yet watched, but if she is better at devops than she is at teaching, she must be off the charts good at devops. I suppose she really likes devops and is motivated to make this astoundingly good material to encourage others to follow her. Thank you so much for this.
@tanngo595
@tanngo595 2 года назад
I gotta say, the more videos I watch your videos , the clearer it is about Kubernetes. Keep up the awesome work!
@bgable7707
@bgable7707 2 года назад
OMG!!! Your explanation on "label & selector & port" , @6:00, helps me understand the relationship in Home Assistants' YAML files and the components with in them. These points are greatly missing from their docs. THANK YOU!!! From ALL the reading and research, I finally found the answer. Please keep up the great work. I'll look for your courses in udemy for sure.
@mostinho7
@mostinho7 4 года назад
I downloaded a paid course but since i found your videos i've been following them instead. Thank you for making this publicly available on the youtubes. Done thanks, notes copied to onenote
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Appreciate your feedback Mostafa! Happy to see that my videos are so informative for you :)
@basilio100
@basilio100 4 года назад
Re: 6:59 - connecting services to deployments Small correction - I think it is important to note. Service manifest in service.spec.selector is using labels of pods, not deployment. So frames at 7:12 -7:36 should not have arrow pointing to deployment (upper arrow)
@biigsmokee
@biigsmokee 3 года назад
so should it be pointing to Deployment.spec.template.metadata.labels.app at 7:12 instead?
@codingstyle9480
@codingstyle9480 2 года назад
What about the deployment label app:ngin-x: is it used anywhere? It is said in the video that everything starts with deployment label. It is related first to pods label and then pods to matchLabels. Is that true?
@mightyplejaden
@mightyplejaden 2 года назад
@@biigsmokee yes
@TimRichardson_GrowthPath
@TimRichardson_GrowthPath Год назад
that makes sense. Why would a service connect to a deployment?
@norman28575
@norman28575 Год назад
Yes, here would have liked to see the mandatory naming. If everything is name nginx its everything else but clear which nginx was ment. It would have been helpfull to use as many different names as possible to see what matches to what.
@manuelsteele8030
@manuelsteele8030 2 месяца назад
I reviewed a project for kubernetes at my company last week. I was overwhelmed with yaml files. I was confused about the pattern of attributes. This video helped me understand the inner details tremendously. Thank you.
@Ruben-by4oy
@Ruben-by4oy 10 месяцев назад
I'm amazed how simole those explanations are. I figured out all myself but anyway it's worth to go through one more time. Thanks
@polartechie
@polartechie 2 года назад
It is legit comforting to click on a new subject and hear Nana's voice because I know that it will be great and I'll soon have all the context :D
@josealbornoz9372
@josealbornoz9372 4 года назад
I've learned a lot here, thanks for making these videos :)
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Awesome José, glad you can learn a lot from my videos 😊
@manishroy1093
@manishroy1093 2 года назад
@@TechWorldwithNana 💐💐💐p 💐💐💐💐💐💐
@manishroy1093
@manishroy1093 2 года назад
@@TechWorldwithNana p 💐💐
@manishroy1093
@manishroy1093 2 года назад
ppppppp
@manishroy1093
@manishroy1093 2 года назад
ppppppp
@swapnilk1011
@swapnilk1011 3 года назад
Nana, Thank you for superb, simple, clear tutorial of K8.
@whoistechcmty
@whoistechcmty 3 года назад
You are a fantastic instructor. Your explanation videos are direct and clear. You describe things clearly and provide context while keeping the primary focus of the lesson in mind.
@amulsharma8172
@amulsharma8172 4 года назад
Hi Nana, you are such a good trainer. Thanks a lot for the session. The way u r teaching it's really good nd concepts r crystal clear. May God bless u with happiness nd success.
@vbharath19
@vbharath19 4 года назад
Am using these videos for my team's training. I don't think there is a better video than yours for kubernetes. Thanks and keep them coming 🙂
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Cool thanks for sharing Bharath, really glad they are so helpful!! 😊
@smrutisamal6363
@smrutisamal6363 4 года назад
Getting confident after watching your videos. First day and I am cofident. Thank you so much for nice explanation
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Wow that's great!! :)
@bulandawaaz2005
@bulandawaaz2005 2 года назад
Thanks watched most of tour K8 videos very nicely explained
@SJJ0378
@SJJ0378 3 года назад
you are awesome Nana. Thank you for sharing knowledge with us.
@junli3714
@junli3714 3 года назад
very nice demo and summarize, clear a lot confusion troubled me for a long time. Thank you Nana !
@normandy1140
@normandy1140 3 года назад
Nana! You did it again! You have a video for everything!!
@nO_d3N1AL
@nO_d3N1AL 3 года назад
Thanks for this. I was so confused when I came across a YAML file with "spec: template: spec". I really wish the documentation explained it more simply. This video clears things up nicely
@jayaprakashdeav
@jayaprakashdeav 2 года назад
Wow what a greate explanation, Thanks for the nice and perfect video. so i understoond clearly *)what is Label & selector *)connection B/W Deployment and Pods connection *)connection B/W Deployment and services Please keep posting this usefull videos.
@happylearningtricks
@happylearningtricks Год назад
Thanks nana, the best channel in entire youtube ⭐⭐⭐⭐⭐🤩
@mccoxall
@mccoxall 3 года назад
Thanks for excellent set of tutorials.
@baarathsrinivasan2880
@baarathsrinivasan2880 3 года назад
your videos are good .. its quite crisp and informative ...
@sambeetnayak1002
@sambeetnayak1002 3 года назад
Hey ..I am new to k8s.. I feel like I should pay for watching Nana's videos.. Excellent teaching skill. Not too depth nor too high level.. Just as much as it required the core concepts. Undoubtedly much better than so called paid courses..
@kuljeetkumar4657
@kuljeetkumar4657 3 года назад
Your Content is very very precise and too the point. Thanks
@dloperab
@dloperab 3 года назад
Thanks Ana...without this series of videos, understanding the concepts of K8s would be very difficult
@wkhan12
@wkhan12 3 года назад
Very specific and to the point, all building blocks explained in pretty simple and practical way. Thank you
@javiercruz1194
@javiercruz1194 3 года назад
Thanks a lot Nana. Your videos are so helpful and good explained that I can say I have learnt a lot with them than others.
@songjeff3966
@songjeff3966 3 года назад
Great job! Very clear and concise explanations!
@bofletcher444
@bofletcher444 Год назад
This is the best explanation I have found. Better than the helm docs. Thank you.
@Amit-qv8cp
@Amit-qv8cp 4 месяца назад
Amazing explanation of deployment and services. Stateful and stateless 😅
@ASTechEdu
@ASTechEdu Год назад
I have learned a lot here, thanks for making these videos. Great teaching
@ravikiranbangera8185
@ravikiranbangera8185 Год назад
Loads of accolades and thanks from India 🙂
@vvineetv
@vvineetv Год назад
Great video Nana. Keep doing the good work and keep helping us. Thanks!
@sherrytabari7538
@sherrytabari7538 2 года назад
Very useful tutorial. very professional Thank you Nana
@marsilya55
@marsilya55 4 года назад
Hi Nana, very good video. I've really appreciated the way you explain; very clear, piece by piece and so.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you, very happy to hear that! Would appreciate if you share my videos, if you think they are helpful :)
@renatobertolaccini3242
@renatobertolaccini3242 4 года назад
Thank you Nana. You are amazing!!!
@AssyrianMuscle
@AssyrianMuscle 3 года назад
your videos are straight gold! thank you
@KohliTendulkar
@KohliTendulkar 3 года назад
This is awesome and Incredible. you have really made a somewhat complex concept so easy to understand!!! THANK YOU
@jvm-tv
@jvm-tv 3 года назад
Great video. nice and clear without fluff.
@bobby3937
@bobby3937 3 года назад
What a clean and neat explanation superb keep doing this type of videos more and more.🤝
@muhammadsubhan8333
@muhammadsubhan8333 3 года назад
Brilliant , very well explained. Thank you so much.
@rowwer1420
@rowwer1420 2 года назад
Many thanks, Nana. It starts to be less complicated for understanding)
@swarnavadatta7892
@swarnavadatta7892 2 года назад
Thanks alot Nana for the very useful information.
@adityabansal2737
@adityabansal2737 Год назад
I like your voice, ...and definitely the video is brilliant
@renatoosousa
@renatoosousa 2 года назад
thanks for clarifying it for me. Nice work.
@sagnikmukh
@sagnikmukh 4 года назад
Thanks for the beautiful video
@TechWorldwithNana
@TechWorldwithNana 4 года назад
You're welcome Sagnik :)
@jawandsingh1464
@jawandsingh1464 3 года назад
Thanks a lot, I could never get to understand these YAML files.
@wardsworld
@wardsworld 4 года назад
Thanks for this amazing video! I watched quite a few videos about k8s, helm, etc, but always got lost with the different keywords, what's required/optional. It's actually logical and simple thanks to your explanation. Subscribed, keep sharing! :)
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Awesome to hear such positive feedback. Thanks and welcome to the channel 😊
@garvisrobot9274
@garvisrobot9274 Год назад
Nice video. Thank you for creating it.
@pareshpatel493
@pareshpatel493 3 года назад
Great video. I love you lot. Keep it up. God bless you.
@urbansaints
@urbansaints 4 года назад
Explaination very clear.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you Derek, that's great :)
@meenakshichhipa6150
@meenakshichhipa6150 3 года назад
Thank you so much Nana!
@gowthamchandaka7409
@gowthamchandaka7409 2 года назад
you have great voice Nana
@explorgood
@explorgood 4 года назад
Clear explanation...!!! thanks a lot, it's very useful...!!!
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you Sumit, happy to hear it's helpful :)
@karthichu
@karthichu 3 года назад
Simply awesome. You made it very clear
@ashishjayan7559
@ashishjayan7559 4 года назад
Nana you are awesome :) The visual learning is cool
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you Ashish! I think with visuals it's so much easier to understand complex concepts 🙂
@kattaanilkumar7901
@kattaanilkumar7901 2 года назад
👍Great explanation
@davidwu1907
@davidwu1907 3 года назад
a wonderful lesson.
@jaimecarranza2509
@jaimecarranza2509 5 месяцев назад
Very nice one, thank you.
@sambines3463
@sambines3463 4 года назад
Great video thanks, not enough of this online.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you 🙏
@venkatthimmappa785
@venkatthimmappa785 4 года назад
ecxellent information. keep rocking
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thanks, will do 🤘
@aproperhooligan5950
@aproperhooligan5950 3 года назад
You rock, Nana!
@sumkumar81
@sumkumar81 4 года назад
really liked the video. it was quick and interesting. thanks for sharing.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Cool thanks for your feedback :)
@SasidaranS
@SasidaranS 2 года назад
Thanks for the detailed and simple explanations
@chroniclesofj
@chroniclesofj 4 года назад
At 12:02 if you use the flag “-export” it will not include most of the generated status data when outputting to the YAML
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thanks for sharing! 👍
@maksimotrishko8843
@maksimotrishko8843 4 года назад
This option is not available since 1.19.0. (here is the link for details github.com/kubernetes/kubernetes/pull/73787#issuecomment-683832518)
@officialismailshah
@officialismailshah 2 года назад
Great work ❤️❤️❤️
@engineervoice6190
@engineervoice6190 4 года назад
Your Videos are really nice i have learned so many things about kubernetes . And if you know about terraform please make some videos for that and also GCP IaaS - Governance, Network, Security, Identity, Compute, Storage, Backup & DR, Monitoring and Automation
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Woah that are many suggestions, thank you! Took a note and will consider them for sure 👍
@pramodkumar-hi3hn
@pramodkumar-hi3hn 4 года назад
Thank you Mam
@turalaliyev6288
@turalaliyev6288 3 года назад
Nana thank you very much. I think you should make videos for Udemy. Really great videos.
@TechWorldwithNana
@TechWorldwithNana 3 года назад
Thanks for your feedback Tural :)
@marwanghabin8758
@marwanghabin8758 4 года назад
very well explained , Thank you
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you for your feedback, glad you liked it :)
@CZiNTrPT
@CZiNTrPT 4 года назад
This was great, thanks!
@DracoWF
@DracoWF 4 года назад
A little bit confusing about Labels and Selectors (why its both for Pods and for metadata section in Deployment itself), but overall Great per se ;)
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you. Will consider your feedback. 🙂
@anandhu5082
@anandhu5082 3 года назад
6:58.. That was confusing,, Why does the deployment need selector to identify its pods?! Why doesn’t the deployment automatically match the pod it’s deploying?
@nforlife
@nforlife 3 года назад
great video
@tanzeemahmed9774
@tanzeemahmed9774 3 года назад
Amazing content, no longer need to memorise k8s yaml as I understand them. Thanks for the video The question I have is, service selectors must match deployment label so both can be connected, but why should deployment selector also match POD label?
@unhash631
@unhash631 4 года назад
Very helpful tutorial. The term "service" is really confusing in terms of Kubernetes. I wonder why they chose that term in defining permanent connection between replicas.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you Lewis, glad it's helpful! :) Yes I also have wondered why they named it service
@anmatr
@anmatr 4 года назад
Thanks for the hard work on these! Is this the last one on the Docker/Kubernetes series or are the more to come?
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thanks a lot André! No here is the complete playlist ru-vid.com/group/PLy7NrYWoggjwPggqtFsI_zMAwvG0SqYCb and tomorrow I will add another one.
@aminebenkhouya7295
@aminebenkhouya7295 4 года назад
Great content
@imabejammin
@imabejammin 4 года назад
Is there a reason you delete the deployment/service with "-f " rather than just delete the deployment/service directly?
@TechWorldwithNana
@TechWorldwithNana 4 года назад
It's just more convenient, especially if you have multiple components inside 1 file, you can delete all with one command. But deleting with "kubectl delete deployment {name}" and "kubectl delete service {name} will do the same. So not much difference there.
@mahesh3267
@mahesh3267 4 года назад
More information with Perfect Explanation. Very helpful. Thank you. Any recommendations for best tutorial for Python.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thanks a lot Mahesh! I don't have any recommendation for Python. But I want to mention that I will actually also do a tutorial for Python, when I finished with the first K8s series ;)
@mahesh3267
@mahesh3267 4 года назад
Very Appreciated for your response. Looking forward to see more videos.
@jasonshortphd
@jasonshortphd 4 года назад
Super helpful. Why can't you make one yaml to do both the service and the deployment? Seems strange to have two files for what I think of as a single thing. Great video though, thanks for sharing.
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thanks Jason. You CAN make one yaml for both. In fact it is a good practice, which I also explain in one of my other videos, because they always go together, meaning you almost always need a service for your deployment.
@TheGarrett1983
@TheGarrett1983 4 года назад
Hello Nana, Thank you so much for making such wonderful,precise and very informative video... Totally loved it !! Subscribed and Notification set immediately after watching your amazing videos . Keep up the good work (y) (y) Kindly request, if possible, please make one video on docker file as well . As the real show runner(heavy lifter) of application deployment is the docker image itself. Definitely will be glad to help in case you need any :)
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Hi, very happy you loved my content so much that you subscribed 👍🙂Did you already see my video on Dockerfile: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-WmcdMiyqfZs.html Or do you have something specific in mind? Thanks for your feedback :)
@williamyoutube368
@williamyoutube368 Год назад
Thank you so much for your detailed and well-organized tutorial. I have a question on how to specify backend / service in the Ingress yaml file. We plan to use a LoadBalancer service to allow internet access to our deployed application. Can we specify the LoadBalancer service directly in Ingress yaml file backend service and skip the ClusterIP service? Or should the backend service points to the auto-generated ClusterIP service (generated by K8S)? Or should we create a new ClusterIP service first, use it as backend service in Ingress yaml, then create a LoadBalancer service to access that created ClusterIP service? Sorry for so many questions. I am confused by whether should use auto-generated ClusterIP or create our own. Also if need the auto-generated one, how we should get its details. Many thanks.
@prashantpathak3175
@prashantpathak3175 3 года назад
Hello @TechWorl with Nana, Can you please make a video explaining the various attributes of Prometheus.yaml. Like various scrape_config field section which includes various attributes. This will help to understand how those file were developed a snippet code of that I am attaching here - job_name: 'k8services' kubernetes_sd_configs: - role: endpoints relabel_configs: - source_labels: - __meta_kubernetes_namespace - __meta_kubernetes_service_name action: drop regex: default;kubernetes - source_labels: - __meta_kubernetes_namespace regex: default action: keep - source_labels: [__meta_kubernetes_service_name] target_label: job
@sreekanthjanapati409
@sreekanthjanapati409 4 года назад
Really such a nice video, could you please make AKS tutorial also
@Sri-mx7zj
@Sri-mx7zj 4 года назад
I like the contents.can you make video for helm deployment
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Thank you, also for your suggestion. Will make some demo videos later
@haroldpepete
@haroldpepete 3 года назад
what is the exactly definition of blueprint? you do a excellent job, God bless you
@SanojKumar-kt5vp
@SanojKumar-kt5vp 3 года назад
Thank you Nana, your tutorials are awesome. I'm learning a lot from your videos. I wanted to ask if deleting service and deployment .yaml files, will delete the pods and services too?
@KevinDiffily
@KevinDiffily 3 года назад
LOVE this series. What editor are you using?
@genson123genson2
@genson123genson2 3 года назад
great.
@souparnikaj4585
@souparnikaj4585 Год назад
It is really good video... I just wanna to know.. is Kube linter validates the yaml files for service and deployment as well .....????? Please reply anyone
@sastra20071
@sastra20071 3 года назад
Hello it would be great if you could make video on how to deploy API gateway application(ZULL/Spring Cloud Gateway) which acts as reverse proxy for all the micro services deployed in kubernetes cluster
@randythamrin5976
@randythamrin5976 3 года назад
thank you for the help, but my question why do I need deployment if I have services? or why do I need service if I already have deployment? do I need to apply them both in my Kubernetes cluster?
@dm0nic4L
@dm0nic4L 4 года назад
Hey Nana. Can you talk a bit more about ReplicaSet. Great content by the way :D
@TechWorldwithNana
@TechWorldwithNana 4 года назад
Hi, as you probably already watched (ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-qmDzcu5uY1I.html), I explain shortly about its role in k8s. However I didn't go much into detail, because you will rarely have to do anything directly with that component. Also it will soon get deprecated as I've read. In which context would you wanna know more about ReplicaSet? Maybe I can help you in that.
@swarnavadatta7892
@swarnavadatta7892 2 года назад
Thank you Nana, this is a big help for beginners to understand 🙏. One question, on K8s official documentation page, all the options of spec are not mentioned. Where to find all the attributes of spec for say deployment or service ? For Terraform or Cloudformation documents contains the all list of values.
@jacksondtwh
@jacksondtwh 4 года назад
Hi Nana, really enjoy your videos - have watched just about every single one of them! However, I still don't quite understand what the purpose of matchLabels is :/
@aefwon3936
@aefwon3936 3 года назад
Nana - I have a single master and single worker node cluster I deployed additional node today in cluster - 2nd worker node i stopped the 1st worker node what I noticed is the pods are getting created on 2nd worker node after significant amount of time after shutting down 1st worker node what settings do we need to put in deployment / else where, so that within few seconds of the node/pod unavailability, K8s starts deploying pods to other nodes?
Далее
Самая сложная маска…
00:32
Просмотров 1,1 млн
YAML Tutorial | Learn YAML in 10 Minutes
10:08
Просмотров 95 тыс.
The Home Server I've Been Wanting
18:14
Просмотров 108 тыс.
OpenAI’s New ChatGPT: 7 Incredible Capabilities!
6:27
Kubernetes Deployment Tutorial - yaml explained + Demo
19:39
Kubernetes Ingress in 5 mins
5:41
Просмотров 191 тыс.