Kubernetes uses YAML files to describe what you want the cluster to create.
Instead of writing code, you declare the desired state.
—
Every Kubernetes YAML usually has 4 main parts:
—
apiVersion: v1
kind: Pod
metadata: name: my-pod
spec: containers: - name: nginx image: nginx
—
YAML is NOT procedural. It is declarative: