kubernetes
Installation
SKILL.md
Kubernetes (K8s) Developer Skill
Roadmap Alignment: roadmap.sh/kubernetes Reference: Kubernetes Official Docs | Kubectl Cheat Sheet
Context for Docker Users
Since you are familiar with Docker, here is how concepts translate to Kubernetes:
- Container → Pod (A pod is the smallest deployable unit and usually contains one container, sometimes more).
docker-compose.yml→ Manifests (Usually split into multiple YAML files likeDeployment,Service,ConfigMap).- Docker Volumes → PersistentVolume (PV) / PersistentVolumeClaim (PVC).
- Port Mapping (
-p 8080:80) → Service (Exposes your pods to the network). - Environment Variables (
.env) → ConfigMap (for non-sensitive data) and Secret (for sensitive data).
Core Standards & Best Practices
1. Declarative Configuration
- Always use YAML manifests and apply them via
kubectl apply -f file.yaml. - Avoid Imperative Commands: Do not use
kubectl createorkubectl runfor creating production resources. Keep everything version-controlled in Git (GitOps).