Search
Lessons (40)
- Bash Scripting & Scheduled Jobs
Write safe Bash scripts with variables, conditions, loops and functions, make them fail loudly with set -euo pipefail …
- Troubleshooting Playbook
… The container exceeded its memory limit. bash kubectl top pod <pod --containers Raise the limit if the app …
- Deploy a Node.js App to a VPS, Step by Step
… First login and a non-root user bash From your laptop: the provider gave you a root password …
- Linux Command-Line Essentials
… You talk to it by typing commands into a shell (most often Bash ). It feels slow for a …
- Users, Permissions & sudo
… folders 755 , files 644 . bash find /var/www/myapp -type d -exec chmod 755 {} + find /var/www/myapp …
- Practical Lab: S3 File Upload and CloudFront Delivery with NestJS
… Test the upload end to end Start the API: bash npm run start:dev Upload an image: bash …
- SSH, Networking & Firewalls
… SSH refuses to use keys that others can read. bash chmod 700 ~/.ssh chmod 600 ~/.ssh/authorized keys …
- Your First Terraform Project
… Then check: bash terraform version mkdir terraform-first-lab cd terraform-first-lab These lessons use Terraform 1 …
- Practical Project: Deploy a Real CRM App on EKS
… 30 bash eksctl create cluster -f cluster.yaml takes 15–20 minutes aws eks update-kubeconfig --name "$CLUSTER …
- Processes, Services & systemd
… Each one has a PID (process ID). bash ps aux every process ps aux grep node find Node …
- Deployments: Keep Your App Running
… Repeat. bash kubectl set image deployment/shop-api api=registry.example.com/shop-api:1.9.0 kubectl …
- Monitoring, Logs & Backups
… Logs Application logs with journald systemd stores your app's stdout/stderr in the journal (lesson 4): bash …
- CI/CD and Reviewed Production Changes
… Avoid posting complete plans containing secret material into public PR comments. Detect drift bash terraform plan -detailed-exitcode …
- Docker in Production on a Single Server
… ghcr.io/your-org/myapp:${{ github.sha }} On the server ( deploy.sh ): bash !/usr/bin/env bash set …
- Linux Troubleshooting Playbook & Interview Questions
… Stop the stray process, and only ever run the app through systemd. Crash loop after a deploy bash …
- Zero-Downtime Deploys & Rollbacks
… bin/npm start The deploy script bash !/usr/bin/env bash deploy.sh: build a new release beside …
- Variables, Locals, Outputs, and Validation
… An output publishes a result. Supply values Create dev.tfvars : hcl project = "shop" environment = "dev" bash terraform plan …
- Testing, Preconditions, and Policy Checks
… Implement policies with the chosen platform's supported policy engine or a tool that evaluates plan JSON. bash …
- Providers and Your First AWS Resources
… Never paste access keys into provider blocks. bash export AWS PROFILE=learning aws sso login --profile learning aws …
- Your Practical Kubernetes Workflow
… revert the Git change, then let the tool sync it. A small, useful kubectl set bash kubectl get …
- Nginx Reverse Proxy & HTTPS
… Show browser errors Install and the basic layout bash sudo apt install -y nginx sudo systemctl enable --now …
- Docker & Containers
… Use volumes for data that must survive. bash docker volume create pgdata docker run -d -v pgdata:/var …
- RBAC and Cluster Security
… rbac.authorization.k8s.io Check access without guessing: bash kubectl auth can-i delete pods -n prod --as …
- From Software Architect to AI Architect: The 24-Week Plan
… Install Python 3.12 and uv , a fast package manager: bash curl -LsSf https://astral.sh/uv/install …
- Safe AWS Deployments with IaC and CI/CD
… Validate syntax and create a preview without executing it: bash aws cloudformation validate-template \ --template-body file://storage …
- Pods: Where Your App Actually Runs
… 80 bash kubectl apply -f pod.yaml kubectl get pods kubectl port-forward pod/hello 8080:80 Now …
- Kubernetes Cluster Architecture, Simply
… your safe starting commands kubectl is the command-line tool that talks to the API server. bash kubectl …
- S3: Store Files Safely
… For a temporary authenticated download: bash aws s3 presign s3://REPLACE WITH YOUR BUCKET/lab/sample.txt \ --expires …
- CI/CD with GitHub Actions
… Deploy run: ssh ${{ secrets.SSH USER }}@${{ secrets.SSH HOST }} \ "bash ~/bin/deploy.sh ${{ github.sha }}" The server runs …
- Python Web APIs: FastAPI and Django
… return self.title bash python manage.py makemigrations write a migration file from model changes python manage.py …
- Running Kafka in Production: The DevOps View
… kafka3-data: bash docker compose up -d Create a topic: 6 partitions, 3 copies docker compose exec kafka1 …
- Topics, Partitions & Offsets
… b@new.com"] end Before -- After bash kafka-configs.sh --alter --entity-type topics --entity-name user-profiles …
- DevOps and the Path from Code to Server
… Stop attackers Users, permissions, firewalls Automate a deploy Bash scripts, cron, CI/CD Where your app can run …
- Internals, Upgrades, Resilience and Interview Questions
… Test in a staging cluster first and have a rollback plan. bash kubectl cordon node-1 kubectl drain …
- DynamoDB Modeling, RDS Scaling and Data Resilience
… 42 ORDER 2025-03-07 9014 total, status bash All orders for customer 42, newest first aws dynamodb …
- Jenkins in Production: Deploys, Docker and Scaling
… deploy.sh does with the tag: bash !/usr/bin/env bash set -euo pipefail TAG="$1" cd /srv …
- Jenkins: From Install to Your First Pipeline
… Docker (easiest for learning) bash docker network create jenkins docker volume create jenkins home docker run -d --name …
- AWS Messaging: Queues, Topics and Events
… Retrieve the queue URL through the console or get-queue-url and replace the placeholder below. bash aws …
- Run Containers on AWS with ECR and ECS
… Replace the account ID in every command. bash aws ecr get-login-password --region ap-southeast-1 --profile …
- EC2, Storage and Auto Scaling
… Paste the following script in the user-data field. bash !/bin/bash set -euxo pipefail dnf install -y …