We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3b0b17 commit bc52e1dCopy full SHA for bc52e1d
06-YAML-Basics/sample-file.yml
@@ -0,0 +1,35 @@
1
+# Simple Key value Pairs
2
+person: # Dictionary
3
+ name: kalyan
4
+ age: 23
5
+ city: Hyderabd
6
+ hobbies: # List
7
+ - cooking
8
+ - cycling
9
+ friends: # Multiple lists
10
+ - name: friend1
11
12
+ - name: friend2
13
+ age: 22
14
+--- # YAML Document Separator
15
+apiVersion: v1 # String
16
+kind: Pod # String
17
+metadata: # Dictionary
18
+ name: myapp-pod
19
+ labels: # Dictionary
20
+ app: myapp
21
+ tier: frontend
22
+spec:
23
+ containers: # List
24
+ - name: myapp
25
+ image: stacksimplify/kubenginx:1.0.0
26
+ ports: # List
27
+ - containerPort: 80
28
+ protocol: "TCP"
29
+ - containerPort: 81
30
31
+
32
33
34
35
0 commit comments