Demo: inspect a Deployment and Service together
Kubernetes YAML is easier to review when resources are grouped by namespace, labels, selectors, and exposed ports. The preview helps catch mismatched labels before kubectl apply.
- Compare Service selectors with Pod template labels.
- Check image tags and pull policies during release review.
- Inspect resource requests and limits next to replica counts.
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
spec:
selector:
matchLabels: {app: api}
template:
metadata:
labels: {app: api}