spec defines the desired state of the object.
This is the most important part of any Kubernetes YAML.
—
Depends on the object:
—
spec: containers: - name: nginx image: nginx
—
spec: replicas: 3 selector: matchLabels: app: web
—
spec = “what you want the system to achieve”
Example:
—
spec is the instruction set for Kubernetes reconciliation loop