Day 5 Today i learned about yaml or yml useful concept and extensively used in DevOps field.
YAML -> Yet another markup language but nowadays it is termed as (YAML AINT MARKUP LANGUAGE)
->It is a data format used to exchange data.
-> It is similar to JSON & XML
JSON stands for Javascript object notation whereas XML stands for extensible markup language.
-> In YAML we can store only data not commands
There is only concepts used in YAML that is Data Serialization and Data deserialization
Data Serialization refers to the process of converting the Data Objects into complex data structures into a stream of bytes.
Extension:
.yaml or .yml
BENEFITS OF YAML
-> Simple & Easy to read
->It has Strict Syntax (Indentation is important)
->Easily convertable to JSON & XML
->Most of the languages use YAML
->More powerful when representing complex data
->Parsing is easy
NOTE:
WHEN WORKING WITH KUBERNETES YAML FILES SHOULD BE VALIDATED
TOOLS:
DATREE -> validates the kubernetes, yaml files
LENS ->creating of yaml files
MONOKLE ->makes it easy to work with large yaml files