Beyond the Obvious- Application Modernization as Crucial C-Suite Strategy
Businesses that remain stagnant risk falling behind the curve. What was once considered groundbreaking may …
YAML(yam-ul) is a Data Serialization language used to capture your data in a key-value pair format, making it easy to read and understand. In this article, I will cover the basic concepts of YAML. It’s Benefits and drawbacks over other markup languages like JSON and XML. YAML in DevOps and best practices to use while writing a YAML file.
If you want to learn more about What is DevOps? Check this out.
ItemKey: ItemValue
Item1: ValueItem2: Value...Last_Item: Value
---ItemKey: ItemValue---Item1: ValueItem2: Value...Last_Item: Value
#Let’s create an item ‘a’ with value 10a: 10#Now lets create another item ‘b’#with value 20 but wait create a thrid item ‘c’ with value 30b: 20c: 30
States: - Texas - North Carolina - ArizonaOr you can use a flow styleStates: [Texas, North Carolina, Arizona]
Address: City: Raleigh State: North Carolina Zipcode: 27606Or you can use a Flow styleAddress: {City: Raleigh, State: North Carolina, Zipcode: 27606}
String_item: “1234”Integer_item: 1234Float_item: 12.34Boolean_item: No
Easy way to overcome this would be to use a YAML validator.
YAML has seen recent popularity in the DevOps community due to all the benefits mentioned above. Creating a configuration file with configuration code that adheres to best practices is quick and easy. We can then define development pipelines using these configuration files. These pipelines are versioned, making it easy to find problems and undo changes with each new build.
Yaml configuration files are source files. So we add them to the root of the repository.
YAML in Prominent DevOps tools:
Best Practices and things to look out for writing a config.yml file,
key: another_key: mapThis is not possibleKey: - List_itemThis is not possible too so try avoiding it.fruits: - apple: sweet lemon: sourThis is possible
Businesses that remain stagnant risk falling behind the curve. What was once considered groundbreaking may …
The mortgage industry has experienced significant shifts within various facets of lending process as a result …
Today’s borrowers expect a seamless, hassle-free experience with their lenders. More than 80% of …
Finding the right talent is pain. More so, keeping up with concepts, culture, technology and tools. We all have been there. Our AI-based automated solutions helps eliminate these issues, making your teams lives easy.
Contact Us