Skip to main content

Best Practices

Browse all articles, tutorials, and guides about Best Practices

10posts

Posts

Kubernetes
|17 min read

Kubernetes Beyond the Basics: 7 Concepts That Take You From Junior to Mid-Level

You can write a Deployment and debug a CrashLoopBackOff. The gap between junior and mid-level is a different set of ideas: how requests really drive scheduling, why Services do not load-balance the way you think, what actually happens during a rolling deploy, and why Kubernetes is a reconciliation engine, not a command runner.

Terraform
|16 min read

Terraform Variables, Loops, and Outputs: The Complete Guide

Everything about moving values through Terraform in one place: declaring vs assigning variables, tfvars and TF_VAR_ precedence, locals, maps and lists, for_each and its pitfalls, splat outputs for counted resources, sensitive values, and the classic "variables may not be used here" error.

DevOps
|13 min read

11 Laws That Quietly Run Your Engineering Team

Parkinson, Goodhart, Brooks, Chesterton. Eleven old "laws" that were not written about software but explain your incidents, your estimates, and your org chart better than most engineering blog posts.

DevOps
|15 min read

Infrastructure as Code: A Beginner's Guide to IaC Fundamentals

Learn the fundamentals of Infrastructure as Code - what it is, why it matters, key concepts, popular tools, and best practices for managing infrastructure with code.

Docker
|12 min read

Docker Image Optimization: Best Practices for Smaller, Faster Images

Learn proven strategies to optimize Docker images: multi-stage builds, layer caching, base image selection, and security hardening. Reduce image size by up to 90% while improving build times and security.

Terraform
|7 min read

How to Save Terraform Plan and Apply Output to a File

Learn how to save Terraform plan output for review, share readable apply logs, and use the -out flag for safe two-step deployments.

Git
|5 min read

How do I Add an Empty Directory to a Git Repository?

Git does not track empty directories by design. Learn practical workarounds to include empty folders in your repository using .gitkeep files and understand why this limitation exists.

Terraform
|14 min read

Should .terraform.lock.hcl Be in .gitignore? Checksums and Versions

No: commit .terraform.lock.hcl. Learn what the lock file records, how version constraints work, how to fix checksum mismatch and "Invalid legacy provider address" errors, how to install a specific Terraform version, and which providers manage on-premises servers.

Terraform
|13 min read

How to Organize a Terraform Repository: Environments, Modules, Files

A practical layout for a Terraform repository: one root folder per environment and component, small reusable modules, and clear file names. Also covers dev, staging and production, workspaces, and how to split main.tf into several files.

Terraform
|13 min read

Terraform Infrastructure as Code Best Practices

Practical Terraform best practices for 2026: repository layout, remote state with native S3 locking, version pins and the lock file, data sources instead of hardcoded IDs, secrets kept out of state, terraform test, and a CI pipeline that applies the plan you reviewed.