In this video, we'll be discussing everything that we need to know about YAML. We'll discuss what YAML is, where do we use it, and how to write it.
YAML stands for YAML ain't markup language. It is not a markup language, but a serialization language. And, this is the most widely used format for writing configuration files because of its readability and flexibility.
If you watch this video completely, writing configuration files like Kubernetes spec files will be a cakewalk for you.
Note: I should have used explicit data type (!!str) for a proper value. Sorry about that. Realized it later.
Timestamps:
00:00 - Intro
00:41 - Serialization
02:52 - YAML vs JSON vs XML
03:15 - Scalars
05:34 - Implicit and Explicit Data Types
05:57 - Comments
06:29 - Objects
07:00 - Arrays
07:50 - Nested Objects
09:19 - Multi-line Strings
10:54 - Multiple Documents in a single file
11:04 - Anchors
11:50 - Summary
Useful Links:
YAML we wrote: github.com/pelthepu/Kubernete...
Equivalent JSON: github.com/pelthepu/Kubernete...
Please give a Like and Subscribe - bit.ly/pavanelthepu
My other courses:
Docker Complete Course: • Docker Tutorial | Ful...
Thank you very much!
#kubernetes #yaml #devops #fullstackdevelopment
24 июл 2024