Home/Tracks/DevOps & Cloud

DevOps & Cloud

Automate what you used to do by hand. The toolchain, the AWS services that matter, containers and Kubernetes, infrastructure as code and version control.

 lessons  documents  infographics

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:

#StageTools
1System administration & scriptingLinux, Bash, Python
2Version controlGit, GitHub, GitLab, Bitbucket
3CI/CDJenkins, GitHub Actions, GitLab CI, AWS CodePipeline
4ContainersDocker, container registries (ECR, Docker Hub)
5OrchestrationKubernetes, EKS, Helm
6Infrastructure as CodeTerraform, CloudFormation
7Configuration managementAnsible
8Monitoring & loggingPrometheus, Grafana, CloudWatch, ELK

AWS in plain English

EC2Virtual servers — raw compute power.
S3Object storage. Store any file, any amount.
IAMWho can do what in your account. Users, roles, policies.
VPCYour private network in the cloud: subnets, route tables, security groups.
ALBApplication Load Balancer. Spreads traffic across instances.
Route 53DNS. Connects your domain to AWS resources.
RDS · DynamoDBManaged SQL databases · serverless NoSQL.
LambdaCode that runs only when triggered. No servers to manage.
ECS · EKSRun containers · managed Kubernetes.
CloudWatchMetrics, logs and alarms — the eyes and ears of your system.

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
Visual: · AWS Guide (PDF)

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.

ImageA read-only template built from a Dockerfile.
ContainerA running instance of an image.
VolumePersistent storage that survives container restarts.
ComposeDefines multi-container apps in 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.

PodSmallest unit: one or more containers sharing a network.
DeploymentKeeps N replicas running, handles rolling updates.
ServiceStable IP/DNS name for a set of pods (ClusterIP, NodePort, LoadBalancer).
NamespaceLogical isolation of resources inside a cluster.
ConfigMap · SecretConfiguration · sensitive values, injected as env vars or files.
PVCPersistentVolumeClaim: storage that outlives pods.
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

TerraformProvisions infrastructure (VMs, networks, cloud resources) from declarative .tf files and tracks it in a state file.
AnsibleConfigures servers over SSH using YAML playbooks. Agentless and idempotent.

Terraform workflow

init→fmt / validate→plan→apply→destroy
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
Commit→Build→Test→Package image→Deploy to staging→Approve→Production
Visual: ·
Library

Documents

PDFs open in a new tab. A tick appears on the ones you've opened.