Skip to content

Instantly share code, notes, and snippets.

@Tharwat96
Created July 28, 2020 22:27
Show Gist options
  • Save Tharwat96/c1a74f7ca2e3c6733545bf9a2024dbbc to your computer and use it in GitHub Desktop.
Save Tharwat96/c1a74f7ca2e3c6733545bf9a2024dbbc to your computer and use it in GitHub Desktop.
YAML Basics and Kubernetes Manifests
# 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