The DevOps toolchain
DevOps joins development and operations so changes go from a commit to production quickly and safely. Learn the stages in this order:
| # | Stage | Tools |
|---|---|---|
| 1 | System administration & scripting | Linux, Bash, Python |
| 2 | Version control | Git, GitHub, GitLab, Bitbucket |
| 3 | CI/CD | Jenkins, GitHub Actions, GitLab CI, AWS CodePipeline |
| 4 | Containers | Docker, container registries (ECR, Docker Hub) |
| 5 | Orchestration | Kubernetes, EKS, Helm |
| 6 | Infrastructure as Code | Terraform, CloudFormation |
| 7 | Configuration management | Ansible |
| 8 | Monitoring & logging | Prometheus, Grafana, CloudWatch, ELK |
AWS in plain English
Sysadmin translation: VPC ≈ your LAN + VLANs, security group ≈ host firewall, IAM ≈ Active Directory permissions, CloudWatch ≈ Wazuh/syslog.
aws configure # set keys and default region
aws sts get-caller-identity # who am I?
aws s3 ls
aws s3 cp backup.tar.gz s3://my-bucket/
aws ec2 describe-instances --output table
Containers with Docker
A container packages an application with its dependencies and shares the host kernel. It's lighter and faster to start than a VM, which carries a full guest OS.
Dockerfile.docker-compose.yml.docker --version
docker ps # running containers
docker ps -a # all containers
docker build -t myapp:1.0 .
docker run -d -p 8080:80 --name web myapp:1.0
docker logs -f web
docker exec -it web bash
docker stop web && docker rm web
docker compose up -d
Kubernetes essentials
Kubernetes runs containers across machines and keeps them in the state you describe in YAML: it restarts failed pods, scales and rolls out updates.
kubectl cluster-info
kubectl get nodes
kubectl get pods -A
kubectl apply -f deployment.yaml
kubectl describe pod <pod> -n <ns>
kubectl logs -f deploy/web -n <ns>
kubectl exec -it deploy/web -- bash
kubectl rollout restart deployment web -n <ns>
See a real deployment in the Infrastructure & Kubernetes Architecture guide: NetBox and a PHP app on Minikube, with probes, PVCs and a runbook.
Terraform & Ansible
.tf files and tracks it in a state file.Terraform workflow
terraform init # download providers
terraform fmt # format files
terraform validate # check syntax
terraform plan # preview changes
terraform apply # make changes
terraform destroy # tear down
Ansible basics
ansible all -i inventory.ini -m ping
ansible all -i inventory.ini -a "uptime"
ansible-playbook -i inventory.ini site.yml --check # dry run
ansible-playbook -i inventory.ini site.yml
Git & CI/CD
Keep scripts, configs and IaC in Git so every change is reviewed, versioned and reversible. CI/CD pipelines then test and deploy each change automatically.
git clone git@github.com:org/repo.git
git checkout -b fix/nginx-timeout
git status
git add -p
git commit -m "Increase nginx proxy timeout"
git push -u origin fix/nginx-timeout
git log --oneline --graph -10
Infographics
Click to open full-size. Use ← → to browse, click the image to zoom.
Documents
PDFs open in a new tab. A tick appears on the ones you've opened.