Yaml Tutorial | Learn YAML in 18 mins

2024 ж. 27 Сәу.
600 579 Рет қаралды

YAML Tutorial for DevOps engineers | YAML Syntax explained with real examples
► Subscribe To Me On KZhead: bit.ly/2z5rvTV
In this complete YAML tutorial you will learn what YAML is, what it's used for and I demonstrate the basic YAML syntax with real Kubernetes configuration files.
YAML stands for YAML Ain't Markup Language and is a data serialization language. The basic building block of YAML documents are key-value pairs. Indentation is used to denote structure and tabs are not allowed.
In all my tutorial videos for Docker, Kubernetes, Ansible etc. I've used YAML for the example configuration files, because YAML has actually become a widely used format for writing configurations files. One of the reasons for its popularity is that the language is human-readable, intuitive and flexible. In fact, it can be used with nearly any application that needs to store or transmit data.
In this Yaml Tutorial I cover the below:
▬▬▬▬▬▬ T I M E S T A M P S
0:00 - Intro
0:11 -YAML is popular
0:36 - What is YAML?
1:13 - Why learn YAML? YAML Format compared to XML and JSON
2:37 - YAML Use Cases
2:52 - YAML Syntax
2:56 - key-value pairs
3:56 - comments
4:18 - objects
5:31 - lists
5:51 - boolean
6:21 - more about lists
8:48 - Real Kubernetes YAML Configuration Example
11:54 - Multi-line strings
15:15 - environment variables
16:07 - placeholders
16:42 - multiple yaml documents
17:17 - YAML and JSON in Kubernetes
▬▬▬▬▬▬ Useful Links ▬▬▬▬▬▬
Code Editor Plugins for YAML, e.g. for Visual Studio Code (supports YAML validation, auto completion, formatting etc): ► github.com/redhat-developer/v...
Online YAML Validator: ► www.yamllint.com/
Json2Yaml Converter: ► www.json2yaml.com/
▬▬▬▬▬▬ Maybe also interesting videos for you ▬▬▬▬▬▬
Full Kubernetes and Docker tutorial ► bit.ly/2YGeRp9
DevOps Tools, like Ansible ► bit.ly/2W9UEq6
What is Kubernetes? ► • What is Kubernetes | K...
#yaml #yamltutorial #devops #techworldwithnana
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Join private Facebook group ► bit.ly/32UVSZP
Don't forget to subscribe ► bit.ly/3mO4jxT
DEV ► bit.ly/3h2fqiO
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► bit.ly/3hWOLVT

Пікірлер
  • ▬▬▬▬▬▬ T I M E S T A M P S 0:00 - Intro 0:11 -YAML is popular 0:36 - What is YAML? 1:13 - Why learn YAML? YAML Format compared to XML and JSON 2:37 - YAML Use Cases 2:52 - YAML Syntax 2:56 - key-value pairs 3:56 - comments 4:18 - objects 5:31 - lists 5:51 - boolean 6:21 - more about lists 8:48 - Real Kubernetes YAML Configuration Example 11:54 - Multi-line strings 15:15 - environment variables 16:07 - placeholders 16:42 - multiple yaml documents 17:17 - YAML and JSON in Kubernetes ▬▬▬▬▬▬ Useful Link 💡▬▬▬▬▬▬ Code Editor Plugin for Visual Studio Code (supports YAML validation, auto completion, formatting etc): github.com/redhat-developer/vscode-yaml 👉🏼 For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. 👉🏼 Also please let me know what you want to learn about DevOps. Please don't forget to subscribe and give me a thumbs up if you liked my video 🤓

    @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
    • Really useful with timestamps

      @kalankaraivilakkam@kalankaraivilakkam3 жыл бұрын
    • @@kalankaraivilakkam Thanks for confirming, I thought so :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
    • I like how you did indentation with the time stamps

      @sanjeevsiva17@sanjeevsiva173 жыл бұрын
    • I believe the video contains a mistake about environment variables (15:15​). The variable expansion is performed by bash, yaml does not recognize the $VAR syntax as anything special, it just sees it as a normal string

      @thedude00@thedude003 жыл бұрын
    • I dont mean to be so offtopic but does someone know a trick to log back into an Instagram account?? I somehow lost the account password. I would love any tips you can give me

      @roycegerardo9708@roycegerardo97082 жыл бұрын
  • I never get tired of listening to your tutorials. you explain things in detail. the most important thing in your tutorials and that makes them special is you start giving historical declarations at the beginning like why it was introduced in our IT world. To me, it is a very very important element of any tutorial. knowing why it was introduced.

    @kefetDtcom@kefetDtcom3 жыл бұрын
    • Thanks so much, really appreciate your positive feedback! :)

      @TechWorldwithNana@TechWorldwithNana2 жыл бұрын
  • Needed to learn this for an internship this was such an easy, quick, and well done tutorial!!

    @AlphaXenarc@AlphaXenarc2 жыл бұрын
  • comprehensive but concise, and well structured content makes the comprehension so easy. so far the best yaml tutorial I have found

    @kunalbangalore@kunalbangalore10 ай бұрын
  • Thank you Nana! I was honestly terrified of thinking I couldn't understand YAML quickly, but you made it so much clear and easy to understand. I learned this much quicker than JSON!

    @ashleyboykin2736@ashleyboykin27362 жыл бұрын
  • Best tutorials on youtube. The moment I have a doubt/question, you always clear that up the next second (e.g. different indentation levels). So clear, concise, practical, and packed full of knowledge. Thank you!!!

    @MistaT44@MistaT442 жыл бұрын
  • I wish I could like this video twice. This is the second time I am coming back to this video. Thank you Nana!

    @monakanafi1057@monakanafi1057 Жыл бұрын
  • so much content in just 18 min . Simple but effective - thanks a ton.

    @sukhwinder101@sukhwinder1012 жыл бұрын
  • I just started to watch your content and... woooow. The quality is fantastic, the knowledge is incredibly valuable and the way you explain it is just super simple. Love it!

    @attilapinter7141@attilapinter71413 жыл бұрын
    • Thank you so much Attila, I appreciate your feedback very much 🙂

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Thanks for this tutorial. All the concept are explained very well. There are many videos on DevOps tools but no one talks about YAML, YAML syntax etc. I appreciate your efforts.

    @harishphapale600@harishphapale6003 жыл бұрын
  • The best and most straight-to-the-point tutorial for YAML introduction I have ever seen. Thank you for your time and effort to cut to the chase!!!

    @jackycwwang@jackycwwang Жыл бұрын
    • She's pretty much the best explainer of _any_ technical topic, not just yml.

      @VeraxMusic@VeraxMusic Жыл бұрын
  • As a new dev to devops I find your channel very useful! Thank you and keep up the great work!

    @tarek_maza@tarek_maza2 жыл бұрын
  • really love the way you structure the tutorial and all the visual cue really helps in understanding the concept easily.

    @jump912@jump9122 жыл бұрын
  • The perfect tutorial to get the basics of yaml and to start the docker and kubernetes tutorials. Thank you and keep it up creating good content.

    @ashishrathod1296@ashishrathod1296 Жыл бұрын
  • I am very new to the whole devOps environment, and your tutorials have, are and (hopefully) will help me a lot. So, a big thank you from me.

    @SJ0693@SJ06932 жыл бұрын
  • Nana, you are a no nonsense person. Thank you for explaining details of YAML in less that 20 minutes.

    @mkotechvid@mkotechvid2 жыл бұрын
  • I'm really pleased by this introduction which is comprehensive and clear. It's worth every minute. Thank you.

    @devdavid8439@devdavid84393 жыл бұрын
    • I'm really happy you think so, thanks so much! :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Very well explained. All YAML concepts in JUST 18 Mins. Appreciate your effots

    @harshgoyal6822@harshgoyal68223 жыл бұрын
    • Thanks, glad to hear :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Thanks a lot for sharing! I've always had difficult to understand Docker-Compose files due to YAML, until today. It's totally clear for me now, because your practical examples contextualized well the theory. Amazing!

    @giovannicruz7023@giovannicruz70233 жыл бұрын
    • Great to hear that my video is so valuable and helpful for you! :) Thanks so much for your feedback Giovanni 🙏

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • I usually learn quietly and move on but on this ocassion I just couldn't resist leaving a comment. You are just too good. You are by far, my number one Docker/Kubernetes instructor on KZhead. This is awesome material I would gladly pay for, if it was put up for sale. I hope you have a financially rewarding time out there consulting for massive organisations with these awesome skills and knowledge.

    @solaadio@solaadio3 жыл бұрын
    • Thank you, I really appreciate your comment! especially that you can see the efforts behind my free content which take up so much time each week 🙉 Actually I am creating my first online course because as you said the effort should pay off, so that I can continue creating the free content on youtube.

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
    • @@TechWorldwithNana i couldn't agree more with the commentator of this thread this is my first time on your channel and me being new to learning aws you're explanation of yaml is really beneficial yet concise. Please keep us posted on where we can buy your course once it's completed you've got a subscriber in me 👌🏾💯

      @Csense-se5ke@Csense-se5ke2 жыл бұрын
    • @@TechWorldwithNana Pls share here when you've the course :)

      @ravis1357@ravis13572 жыл бұрын
  • Wow you just blew my mind with the mutiple components in a single YAML file! Thanks for your video, this was insanely helpful for me and you're a great teacher!

    @ashguillaume8584@ashguillaume85843 жыл бұрын
    • Really happy to hear Ash, thank you for your comment! :)

      @TechWorldwithNana@TechWorldwithNana2 жыл бұрын
  • Thank you for this awesome tutorial, I was very confused between yaml and json but after watching this tutorial, now I can able to write conf files using yaml.

    @easy-waytolearn4118@easy-waytolearn41182 жыл бұрын
  • The dash in the ">-" symbol at 15:36 is a "block chomping indicator". From the specification: "Stripping is specified by the “-” chomping indicator. In this case, the final line break and any trailing empty lines are excluded from the scalar’s content."

    @sami-nn9fg@sami-nn9fg Жыл бұрын
  • I am glad I spent 30min of my time watching this. It's so simple, until you're told what is going where. Thank you for this Nana. :)

    @BijouBakson@BijouBakson Жыл бұрын
  • Just want to say, god bless you nana for all this great content

    @Joe-tk8cx@Joe-tk8cx3 жыл бұрын
  • Thank you for all these videos Nana, they have been so helpful!

    @alanrudolf@alanrudolf2 жыл бұрын
  • It is becoming a hobby to watch these tutorials, very useful - Thanks!

    @arihantjain8347@arihantjain8347 Жыл бұрын
  • Excellent video. Very comprehensive, clarity of thought is superb! Glad I found this channel!

    @rajeevsai91@rajeevsai912 жыл бұрын
  • One of the best videos available on the internet on YAML. Keep up the good work NANA. :)

    @pravataranjandashfse2677@pravataranjandashfse26773 жыл бұрын
    • Wow thank you so much Pravata! 🙂

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • You are gem in explaining any concept, great content. Good work!

    @manojkatari4386@manojkatari4386 Жыл бұрын
  • You are just awesome Nana. You always know that what the viewers are looking for and hence you just deliver that...

    @er.vikramkumarpundir8073@er.vikramkumarpundir80732 жыл бұрын
  • Awesome tutorials, also the way you explains every bit of it in detail, really thankful.

    @nileshdeals@nileshdeals2 жыл бұрын
  • Super simplicity of teaching YAML. Never thought that someone can easily teach YAML in 17-18 minutes and the audience also able to learn in such a short and sweet time. You are awesome in all these short videos and it really helps in learning things very quickly. Keep up your good videos

    @judestephen3634@judestephen36343 жыл бұрын
    • Thanks so much Jude, really happy to hear that!! :)

      @TechWorldwithNana@TechWorldwithNana2 жыл бұрын
  • I like this tutorial: No drama, Straight to the point with real examples! Thank you! Now back to your docker tutorial. (Already Liked and Subscribed).

    @josephnduati1214@josephnduati12143 жыл бұрын
    • Thanks Joseph!! :D

      @TechWorldwithNana@TechWorldwithNana2 жыл бұрын
  • NANA I just stop to listen your voice. So neat , so engaged. Thank you for making such videos it is definitely helping me to move forward in my career.

    @aryan368@aryan3683 жыл бұрын
  • That was a really clear and to the point explanation, really appreciate it.

    @jairunet@jairunet Жыл бұрын
  • Great work with the tutorial. To the point and well explained. Kudos and keep them coming

    @gkapoor80@gkapoor802 жыл бұрын
  • Thank you for the good Tutorial, a clear good understandable voice makes so much of a diffrence !

    @florih91@florih913 жыл бұрын
  • Wow. This was really well structured and very informative. Thank you so much for it. Good job.

    @ClausPolanka@ClausPolanka3 жыл бұрын
    • Thanks a lot Claus, really happy to hear! Check out my other videos as well :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Clear, simple, very informative. Thank You !

    @VladimirPeric22@VladimirPeric223 жыл бұрын
  • you never stop surprising me , thanks for your lessons!

    @pedrojaviermunozgarcia3721@pedrojaviermunozgarcia37216 ай бұрын
  • This is fantastic explanation Nana. Thank you so much for this content.

    @navneethparthasarathy8395@navneethparthasarathy83953 жыл бұрын
  • Awesome, thanks for this short, handy and clear introduction to YAML

    @xarmandop@xarmandop Жыл бұрын
  • Most useful YAML tutorial for DevOps engineers. Appreciate the effort.

    @siddharthojha4190@siddharthojha41903 жыл бұрын
    • Thanks a lot Siddharth, really happy to hear it's useful for you guys :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Probably best video on Yaml to kick start.

    @amoodi@amoodi2 жыл бұрын
  • Concise, to the point tutorial. Thank you so much!

    @boyizhang1476@boyizhang14762 жыл бұрын
  • Thank you teacher for valuable teachings, I really gained knowledge with your outstanding teaching capabilities just for free of cost, I can jast say happy thanks for you.

    @ramurkrish@ramurkrish2 жыл бұрын
  • Thank you, Nana! wow, this feeling of understanding is incredible

    @amour_armour@amour_armour11 ай бұрын
  • this is sooo good and well explained! thanks Nana!

    @chun-lunlin7397@chun-lunlin73972 ай бұрын
  • thanks for this high quality introduction, clear and to the point !

    @StephaneChampoussin@StephaneChampoussin2 жыл бұрын
  • Great video! Clear, nicely organized with relevent examples.

    @ChuckHahm@ChuckHahm3 жыл бұрын
  • Always on point and I learn a lot from your vids. Thank you Nana

    @MK72887@MK728872 жыл бұрын
  • Superb explanation. Carrying these doubts for many months, now got cleared about the yaml indentation. Thank you. Expecting more videos with same clarity. Have been watching your channel continuously.

    @karthickbaskar6886@karthickbaskar68863 жыл бұрын
    • Wow happy to hear that I could help in clarification :) Thanks a lot Karthick!

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • I like your tutorials and this is all explained in an easy to understand way. 👍

    @holgerhedenius6929@holgerhedenius69292 жыл бұрын
  • This tutorial was Awesome 👏. Thank you Nana . I learned a lot from your channel .

    @durgaprasadvinukonda@durgaprasadvinukonda11 ай бұрын
  • Thankyou Nana I have watched a few videos on YAML structure and this is easily the best on KZhead

    @mikesmith2315@mikesmith23152 жыл бұрын
  • amazing tutorial. always simple and straight to the point

    @jeymsie2474@jeymsie2474 Жыл бұрын
  • Nana, you are outstanding in Teaching , Simple and Best . Many Thanks

    @prasadrao4840@prasadrao4840 Жыл бұрын
  • finally I understand YAML !! , great explanation !!😁😁 Thank you Nana !! 👍😁

    @xxxxxx542@xxxxxx5423 жыл бұрын
    • Cool glad it was so helpful 🙂👍

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Thanks for this video. It's an excellent tutorial on YAML!

    @amitrastogi1405@amitrastogi140521 күн бұрын
  • YAML has one idiosyncrasy regarding list indentation that I don’t really like, but whichever you choose - be consistent. You can even see this variation in how list indentation can be expressed at 8:09 (happens to me a lot by accident, too). So, apparently with YAML lists, you can actually put the dash/hyphen at the SAME indentation level as the parent. You just have to ensure that the first attribute (e.g. “app” in your example) and all other attributes under it are still indented by the same amount (e.g. if you’re using 2 spaces for indentation, the dash takes up one space, then one space after that, then the first attribute). Then subsequent attributes are _also_ still indented with 2 spaces relative to the parent. It’s more dense and even if you’re using normal 2 space indentation, it’s more of a subjective decision: Which do *you* choose? E.g. When you conceptualize a list, does the list itself start indented at the dash or is it’s indentation location dictated by the list contents? 🧐

    @patricknelson@patricknelson2 жыл бұрын
  • Your channel is amazing. Thanks a lot for that!

    @TcheloJG@TcheloJG3 жыл бұрын
  • VERY NICE!!! Clear & thorough. On to your "Kubernetes YAML File Explained "

    @bgable7707@bgable77072 жыл бұрын
  • Beautifull explanation! Subscribed!!!

    @felixpujols1895@felixpujols189511 ай бұрын
  • Thanks for the very clear and nuanced video!

    @denniswillenborg4828@denniswillenborg48282 жыл бұрын
  • Mam your concepts are so good and you explain everything with its purpose and in detail. Thank you so much for making your channel, may it grow to millions of subscribers. Just keep going like this and explain every devops tool

    @shubhambansal2250@shubhambansal22503 жыл бұрын
    • Hi Shubham, thank you so much for your comment. This is really motivating, happy you think so 🙏 🙂 That's exactly my plan to explain many many more devops tools, which are extremely helpful for you guys 😇

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Excellent. Simple and easy to understand. Thank you!

    @northshorepx@northshorepx3 жыл бұрын
    • You're welcome, glad you liked my teaching style :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • It will helpful to devops guys, most of my colleagues who are into infrastructure think that yaml is a programing language.

    @rajag8851@rajag88513 жыл бұрын
    • Please share the video with them :D

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Great and very clear explanation! Thanks a lot for your job, it is really useful!!!

    @dmitry311212@dmitry3112122 жыл бұрын
  • What a great explanation....Nana, you are great.

    @mmm763@mmm7632 жыл бұрын
  • Very well put video, effective and precise. Brilliantly explained, Cheers to you 👍😉

    @SudharshanAcharia@SudharshanAcharia3 жыл бұрын
    • Thank you Sudharshan, glad you liked the video and teaching style 👩🏻‍💻🙂

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Danke! Das war genau der überblick den ich gerade gebraucht habe. Super erklärt!

    @apollo2278@apollo22783 жыл бұрын
    • Danke Mike, das freut mich zu hören! 😊

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Amazing tutorial on YAML!

    @automationneemo@automationneemo3 жыл бұрын
  • Helpful video, clear explanation, many thanks for your effort.

    @ashraffouad@ashraffouad Жыл бұрын
  • Thank you so much for the excellent and detailed explanation.

    @aviagronov5466@aviagronov54663 жыл бұрын
  • I love your tutorials - pls carry on - Thanks

    @s.atifhussainrizvi6065@s.atifhussainrizvi60653 жыл бұрын
  • Excellent, very intuitive.. much appreciated 👍

    @shashirajitagi616@shashirajitagi616 Жыл бұрын
  • Great video with very clear explanation. Looks like you skipped a few other features like anchoring and type conversion. I would have also liked to hear about what happens to comments and multi sections ("---" feature) when YAML is converted to JSON. Thank you for teaching us!

    @hp.ramesh@hp.ramesh2 жыл бұрын
  • Thanks. Really great review and refreshher for the rules of yaml.

    @flaviaruffner1074@flaviaruffner1074 Жыл бұрын
  • Thank you Nana, very well put together

    @michaelcolun9849@michaelcolun9849 Жыл бұрын
  • AWESOME, thank you nana... thank you to share such a great content for free... you helping many people❤🍻

    @alifiroozizamani7782@alifiroozizamani77822 жыл бұрын
  • Very clear. Thank you Nana for this tutorial

    @SA-xq3xe@SA-xq3xe Жыл бұрын
  • Professionally created video. Well done.

    @KatRollo@KatRollo3 жыл бұрын
    • Thank you Kat for your feedback! :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Your explanation is amazing... Thank you very much ..

    @jaya3926@jaya3926 Жыл бұрын
  • Best explanation of YML ever, thx

    @alekseyslovyagin6056@alekseyslovyagin60562 жыл бұрын
  • People are talking good about your tutorials, so let me try u up. I c here so far so good!

    @polarispolaris5077@polarispolaris50772 жыл бұрын
  • Very well explained, thanks ❤️

    @ca7986@ca79863 жыл бұрын
  • Great content! Much appreciated! Devops Engineer here I come. 🙂

    @LawrenceWelch@LawrenceWelchАй бұрын
  • Thank you Nana!! Very well explained and usefull to implement generics in my scripts

    @petermobiel1447@petermobiel1447 Жыл бұрын
  • best tech teacher in KZhead! qq to anyone, newbie here, at 10:55, isn’t “ports” here a “list of objects” instead of just a “list”? ty

    @dallastee1005@dallastee1005 Жыл бұрын
  • This is an excellent video on Yaml. Thanks a ton.

    @raghavops146@raghavops146 Жыл бұрын
  • Super fantastic explanation and organisation!!! Subscribed after watching the first video 🤩

    @skviknesh@skviknesh2 жыл бұрын
    • Thank you 🤗

      @TechWorldwithNana@TechWorldwithNana2 жыл бұрын
  • Well structured and informative. Thanks

    @jeshocarmel2231@jeshocarmel22313 жыл бұрын
    • Thanks Jesho! :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Thanks for creating this video, I use notepad++ a lot, apart from coding I use it for documentation too, I was looking for some simple solution to fold block of sentence / lines so thought this would be the best option

    @PGhai@PGhai Жыл бұрын
  • Great tutorial! Thank You!

    @jimlprucha@jimlprucha3 ай бұрын
  • Amazing video! Very well structured and the editing was on point. I already knew most of these being a daily kubernetes user but I still found huge value in watching. Thank you!

    @juanmacoo@juanmacoo3 жыл бұрын
    • Thanks Juan! Really happy to hear you got some value out of it, even though you are more experienced :)

      @TechWorldwithNana@TechWorldwithNana3 жыл бұрын
  • Nice explaination and good to hear XML json yaml comparision.

    @alagurajar.k3463@alagurajar.k34633 жыл бұрын
  • Excellent demo. Thank you.

    @santosharakere@santosharakere Жыл бұрын
  • Simply awesome! Thank you

    @cvicracer@cvicracer3 жыл бұрын
  • Very good explanation. Thank you!

    @alvaroefmota@alvaroefmota3 жыл бұрын
KZhead