DevOps Daily Tips
Bite-sized, actionable DevOps tips you can apply immediately. One new tip every day.
All Tips
Switch Between Clusters with kubectl Contexts
One wrong context means running production commands on the wrong cluster.
Recover Lost Commits with Git Reflog
Git reflog is your undo button β it can recover commits you thought were gone forever.
ENTRYPOINT vs CMD β Know When to Use Each
Using the wrong instruction means your container either can't be customized or doesn't behave like a proper executable.
Use .dockerignore to Speed Up Builds and Protect Secrets
Without .dockerignore, you're sending node_modules, .git, and maybe even .env secrets into your image.
Stop Killing Processes Wrong β Use Signals Properly
kill -9 is a last resort, not the first move β it can corrupt data and leave orphaned processes.
Liveness vs Readiness Probes β Know the Difference
Using the wrong probe type causes either endless restarts or traffic sent to broken pods.
Cut CI/CD Pipeline Time in Half by Caching Dependencies
Your pipeline re-downloads the same packages every single run β caching stops this waste.
Find the Exact Commit That Broke Your Code with Git Bisect
Git bisect binary-searches through 1,000 commits to find the broken one in just 10 steps.
Shrink Docker Images by 90% with Multi-Stage Builds
Multi-stage builds can significantly reduce image size by stripping out everything you don't need at runtime.
Find What's Eating Your Disk Space in Seconds
A full disk at 2am is every SRE's nightmare β these two commands prevent it.
Always Set Resource Limits in Kubernetes
Without resource limits, one runaway pod can starve your entire cluster.
Clean Up Messy Git History by Squashing Commits
Squashing commits turns 'fix typo', 'oops', 'actually fix it' into one clean, meaningful commit.