-
-
Notifications
You must be signed in to change notification settings - Fork 658
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2bb7df7
commit 976b53f
Showing
1 changed file
with
29 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,45 @@ | ||
## YAML - YAML Ain't Markup Language | ||
|
||
YAML is a human-readable data serialization language. It is commonly used for configuration files and in applications where data is being stored or transmitted. | ||
|
||
Eg: | ||
|
||
```yaml | ||
name: Pradumana | ||
age: 21 | ||
address: | ||
city: Bangalore | ||
state: Karnataka | ||
country: India | ||
phone: | ||
office: 0000000 | ||
home: | ||
- 1111111 | ||
- 2222222 | ||
``` | ||
## Learning Resources | ||
- [YAML.](https://yaml.org/) | ||
- [YAML](https://yaml.org/) | ||
- [Yaml Tutorial - TechWorld with Nana](https://youtu.be/1uFVr15xDGg) | ||
- [Complete YAML Course](https://youtu.be/IA90BTozdow) | ||
- Data format used to exchange data. | ||
## Properties | ||
- Similar to XML & JSON. | ||
- We can't add commands. | ||
- Simple and easy to read. | ||
- Strict syntax - (Indentation) | ||
- More powerful to represent complex data. | ||
- Parsing is easy | ||
- Human readable data serialization language. | ||
## Usage | ||
- Use in config files (Docker/Kubernetes) | ||
- used Logs, cache, etc | ||
- Used in Kubernetes, Ansible, Docker, etc. | ||
- Used to store data in key-value pairs. | ||
- CI/CD tools like GitHub Actions, CircleCI, use YAML to create workflows. | ||
#### YAML tools | ||
[yamllint](http://www.yamllint.com/) - Check the the format of the file | ||
- [Yamllint](http://www.yamllint.com/) - Check the the format of the file. | ||
- [YAML Validator](https://codebeautify.org/yaml-validator) - Check the the format of the file. | ||
- [YAML to JSON](https://codebeautify.org/yaml-to-json-xml-csv) - Convert YAML to JSON. |