intro_kubernetes (1)
intro_kubernetes (1)
• One of the easiest ways to create Kubernetes YAML is using the visual
studio kubernetes extension.
• Install the Kubernetes VS code extension, and it will help develop k8s
manifests for most kubernetes objects. It also supports deploying apps
to local and remote k8s clusters.
• All you have to do is, start typing the Object name and it will
automatically populate the options for you. Then, based on your
selection, it will autogenerate the basic YAML structure.
• This extension supports YAML generation of Pods, Deployment,
Statefulset, Replicationset, Persistent Volumes (PV), Persistent Volume
Claims (PVC), etc.
Other characteristics you should
know about YAML:
• It is case sensitive
• Elements in the same level share the same left indentation, the
amount of indentation does not matter
• Tab characters are not allowed to be used as indentation
• Blank lines do not matter
• Use # to comment a line
• Use a single quote ' to escape the special meaning of any character