Kubernetes
Manifests Commands
Work with Kubernetes YAML manifests effectively. Learn to apply, diff, and manage declarative configurations, and understand best practices for manifest organization.
14 commands
Pro Tips
Use 'kubectl diff -f manifest.yaml' to preview changes before applying them to the cluster.
Use 'kubectl apply --dry-run=client -o yaml' to see what would be created without making changes.
Use Kustomize or Helm for managing environment-specific variations of manifests.
Common Mistakes
'kubectl apply' uses last-applied-configuration annotation. 'kubectl create' doesn't - mixing can cause issues.
Deleting the manifest file doesn't delete the resource. Use 'kubectl delete -f manifest.yaml'.