This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: nginx-deployment | |
labels: | |
app: nginx | |
spec: | |
replicas: 3 | |
selector: | |
matchLabels: |
This file contains hidden or 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
key: | | |
### Heading | |
* Bullet | |
* Points | |
# JSON Output which preserves the line breaks | |
{ | |
"key": "### Heading\n\n* Bullet\n* Points\n" |
This file contains hidden or 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
example: > | |
Several lines of text, | |
with some "quotes" of various 'types' | |
and also a blank line | |
plus another line at the end. | |
JSON | |
{ |
This file contains hidden or 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
version: '3' | |
services: | |
web1: &web | |
image: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
- ./templates:/etc/nginx/templates | |
port: | |
- 80:80 | |
web2: |
This file contains hidden or 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
services: | |
web1: &web | |
image: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
- ./templates:/etc/nginx/templates | |
port: | |
- 80:80 |
This file contains hidden or 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
version: '3' | |
services: | |
web1: &web | |
image: nginx | |
volumes: | |
- ./nginx.conf:/etc/nginx/nginx.conf:ro | |
- ./templates:/etc/nginx/templates | |
port: | |
- 80:80 | |
web2: |
This file contains hidden or 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
- &elect Tesla | |
- BMW | |
- Lexus | |
- Lucid | |
- *elect | |
# Here the anchor & is elect | |
# here the alias is *elect | |
#when the list is executed the actual |
This file contains hidden or 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
<Cars> | |
<BMW> | |
<mph>120</mph> | |
<price>50000</price> | |
<electric>No</electric> | |
</BMW> | |
</Cars> | |
<Cars> | |
<Tesla> | |
<mph>110</mph> |
This file contains hidden or 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
{ | |
"Cars": [ | |
{ | |
"BMW": { | |
"mph": 120, | |
"price": 50000, | |
"electric": false | |
} | |
}, | |
{ |
This file contains hidden or 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
{ | |
"Cars": [ | |
{ | |
"BMW": { | |
"mph": 120, | |
"price": 50000, | |
"electric": false | |
} | |
}, | |
{ |