Created
July 28, 2020 22:27
-
-
Save Tharwat96/c1a74f7ca2e3c6733545bf9a2024dbbc to your computer and use it in GitHub Desktop.
YAML Basics and Kubernetes Manifests
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
# This is a comment, we will use comments to explain. | |
# There are three types of data in YAML: | |
# - key value pair, lists/arrays, dictionaries | |
# key value pair: | |
Fruit: Apple | |
Vegetable: Carrot | |
Liquid: Water | |
Meat: Chicken | |
# Lists: | |
Fruits: | |
- Orange | |
- Apple | |
- Banana | |
# Dictionary: | |
Banana: | |
Calories: 105 | |
Fat: 0.4g | |
Carbs: 27g | |
Grapes: | |
Calories: 62 | |
Fat: 0.3g | |
Carbs: 16g | |
# key pairs within list within dictionary | |
Fruits: | |
- Banana: | |
Calories: 105 | |
Fat: 0.4g | |
Carbs: 27g | |
- Grapes: | |
Calories: 62 | |
Fat: 0.3g | |
Carbs: 16g |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment