Declarative Resource Management
Overview
Declarative vs Imperative
Approach
How
Example
# Imperative β fragile, hard to reproduce
kubectl create deployment nginx --image=nginx:1.25
kubectl scale deployment nginx --replicas=3
kubectl expose deployment nginx --port=80
# Declarative β reproducible, version-controlled
kubectl apply -f deployment.yamlKubernetes Manifests
Core Resource Types for Platform Engineers
Resource
Purpose
Example: A Complete Application Manifest
Helm: Parametric Kubernetes Packaging
Key Helm Concepts
Concept
Description
Chart Structure
Parameterizing for Multiple Environments
Kustomize: Overlay-Based Customization
Directory Structure
Helm vs Kustomize
Aspect
Helm
Kustomize
Desired State and Reconciliation
Resource Management Best Practices for Platform Teams
1. Always Set Resource Requests and Limits
2. Use ResourceQuotas per Namespace/Team
3. Label Everything Consistently
4. Separate Configuration from Code
Key Takeaways
Further Reading
Last updated