10 DevOps Projects to Build Your Portfolio

Ten DevOps portfolio projects with step outlines: Linux, Docker, CI, Terraform, Ansible, Kubernetes, Argo CD, Prometheus, DevSecOps and a capstone.

Dec 31, 2025 - 15:29
Nov 7, 2026 - 05:16
 0  603
TOPICDevOps BasicsPractical guide
10 DevOps Projects to Build Your Portfolio

The best DevOps portfolio projects are ones you build and document yourself: a hardened Linux server, a containerized app, a CI pipeline, Terraform infrastructure, Ansible configuration, a Kubernetes deployment, GitOps with Argo CD, a monitoring stack, a DevSecOps pipeline and a capstone that joins them. Each needs a public repository, a README and proof that it works.

This guide gives a step outline, a definition of done and the evidence to show for each of the ten projects. They build on each other, so by project 10 you have one connected system rather than ten toy repos. If you are new to the field, start with our explainer on what DevOps is, then come back here. Tool names, commands and config syntax were checked against official documentation in November 2026.

Key takeaways

  • Build projects in order. Each one reuses the app, repository or infrastructure from the one before, which is closer to how real platforms grow.
  • A recruiter or interviewer spends a few minutes on your repository. A clear README with an architecture diagram, run instructions and screenshots of the pipeline matters as much as the code.
  • Run everything locally first on Docker and a kind cluster. Move to a cloud account only for the Terraform and capstone projects, and set a billing alert before you start.
  • Write down what broke and how you fixed it. A short "problems I hit" section gives an interviewer something real to ask about.
  • Copying a demo app is fine. Copying someone else's pipeline is not a portfolio project. The work you show must be the automation you wrote.
  • If you want existing repositories to practise on before you build your own, use our list of 20 GitHub projects to practise DevOps hands-on.

The ten projects at a glance

#ProjectMain toolsLevelRuns locally?What it proves
1Hardened Linux server with automation scriptsBash, systemd, firewalld or ufw, SSHBeginnerYes (VM)Linux administration, scripting
2Containerized three-tier appDocker, Docker ComposeBeginnerYesImages, networking, volumes, health checks
3CI pipeline that builds, tests and publishes an imageGitHub Actions, GHCRBeginner to intermediateRuns on GitHubPipeline as code, caching, artifacts
4Cloud network and compute with TerraformTerraform or OpenTofu, AWS/Azure/GCPIntermediateNeeds a cloud accountInfrastructure as code, remote state, modules
5Server configuration with Ansible rolesAnsible, MoleculeIntermediateYes (VMs or containers)Idempotent configuration management
6Kubernetes deployment with Helmkind, kubectl, Helm, Gateway APIIntermediateYesWorkloads, probes, autoscaling, packaging
7GitOps delivery with Argo CDArgo CD, KustomizeIntermediateYesDeclarative delivery, environment promotion
8Monitoring and alerting stackPrometheus, Grafana, AlertmanagerIntermediateYesMetrics, SLOs, alert rules, runbooks
9DevSecOps pipelineCodeQL, dependency review, Trivy, OIDC, Vault or OpenBaoAdvancedPartlyShift-left security, secretless deploys, provenance
10Capstone: progressive delivery plus an incident reviewArgo Rollouts, Prometheus, everything aboveAdvancedYes, or cloudEnd-to-end ownership and operations

Before you start: the portfolio repository layout

Use one GitHub account with pinned repositories, or one monorepo with a folder per project. Either way, every project folder should contain the same things so a reader knows where to look:

  • README.md with the goal, an architecture diagram (draw.io or Mermaid is fine), prerequisites, exact run steps and a teardown step.
  • A "Decisions" section that explains two or three choices, for example why you used a multi-stage Dockerfile or why state lives in a remote backend.
  • A "Problems I hit" section with real errors and fixes.
  • Screenshots or short recordings of the result: a green pipeline run, a Grafana dashboard, an Argo CD sync.
  • No secrets, ever. Add a .gitignore for .env, *.tfstate and kubeconfig files before your first commit.

For a sample app, pick something small with a database, such as a to-do API in Python, Node.js or Go. You will reuse it in projects 2, 3, 6, 7, 8, 9 and 10.

Foundation projects

1. Hardened Linux server with automation scripts

Goal: show that you can build, secure and maintain a Linux server from the command line.

  1. Create a VM (VirtualBox, a cloud free tier or a spare machine) running RHEL, Rocky Linux, AlmaLinux or Ubuntu Server.
  2. Create a non-root admin user, set up SSH key login and disable password and root login in /etc/ssh/sshd_config.
  3. Enable a host firewall (firewalld on RHEL family, ufw on Ubuntu) and open only SSH and HTTP/HTTPS.
  4. Install a web server or your app as a systemd service with a unit file, and set it to start at boot.
  5. Write Bash scripts for a nightly backup of the app data and a disk usage check, and schedule them with a systemd timer or cron.
  6. Configure log rotation for the app logs.

Definition of done: a fresh VM can be brought to the same state by following your README, the scripts pass ShellCheck, and systemctl status shows the service and timer active.

Evidence to show: the unit files, the scripts, the hardened sshd_config diff and a short note on SELinux or AppArmor mode.

2. Containerized three-tier app

Goal: package your app and its dependencies so it runs the same on any machine.

  1. Write a multi-stage Dockerfile that builds the app in one stage and copies only the runtime files into a slim final image.
  2. Run the process as a non-root user and add a .dockerignore.
  3. Write a compose.yaml with the app, a database (PostgreSQL or MySQL) and a reverse proxy, a named volume for data and a health check on the database.
  4. Make the app wait for a healthy database with depends_on and condition: service_healthy.
  5. Pass configuration through environment variables, with a committed .env.example and an ignored .env.
FROM python:3.13-slim AS build
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir --prefix=/install -r requirements.txt

FROM python:3.13-slim
WORKDIR /app
COPY --from=build /install /usr/local
COPY src/ ./src/
RUN useradd --create-home appuser
USER appuser
EXPOSE 8000
CMD ["python", "-m", "src.main"]

Definition of done: docker compose up starts the full stack on a clean machine, data survives docker compose down and up, and the final image is noticeably smaller than a single-stage build. Record both sizes in the README.

3. CI pipeline that builds, tests and publishes an image

Goal: every push runs tests and every merge to main publishes a versioned image.

  1. Add unit tests and a linter to the app.
  2. Create .github/workflows/ci.yml that runs lint and tests on pull requests.
  3. On pushes to main, build the image with Buildx, tag it with the commit SHA and push it to GitHub Container Registry (GHCR).
  4. Set the workflow permissions to the minimum each job needs.
  5. Protect main with a branch rule that requires the CI check to pass.
name: ci
on:
  pull_request:
  push:
    branches: [main]

permissions:
  contents: read

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v7
      - uses: actions/setup-python@v7
        with:
          python-version: "3.13"
          cache: pip
      - run: pip install -r requirements.txt -r requirements-dev.txt
      - run: ruff check .
      - run: pytest

  image:
    needs: test
    if: github.event_name == 'push'
    runs-on: ubuntu-latest
    permissions:
      contents: read
      packages: write
    steps:
      - uses: actions/checkout@v7
      - uses: docker/setup-buildx-action@v4
      - uses: docker/login-action@v4
        with:
          registry: ghcr.io
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
      - uses: docker/build-push-action@v7
        with:
          push: true
          tags: ghcr.io/${{ github.repository }}:${{ github.sha }}
          cache-from: type=gha
          cache-to: type=gha,mode=max

Definition of done: a pull request with a failing test cannot merge, and a merge produces an image in GHCR tagged with the commit SHA. Note the GHCR image path must be lowercase, so rename the repository or lowercase the name if your username has capitals.

When this works, extend it with ideas from our list of GitHub Actions workflows for automation.

Infrastructure projects

4. Cloud network and compute with Terraform

Goal: provision a small but realistic cloud environment entirely from code.

  1. Create a remote state backend first (for AWS, an S3 bucket with versioning and state locking; for Azure, a storage account container; for GCP, a GCS bucket).
  2. Write a network module: a VPC or VNet, one public and one private subnet across two availability zones, and route tables.
  3. Add a compute layer: one VM or a managed container service that runs the image from project 3.
  4. Use variables and terraform.tfvars files for dev and prod, and outputs for the public endpoint.
  5. Run terraform fmt -check, terraform validate and terraform plan in a pull request workflow, and apply only from main.
  6. Run terraform destroy when you finish and note it in the README.

Definition of done: terraform apply from an empty account builds the environment, a second plan shows no changes, and destroy removes everything. Terraform has been under the Business Source License since 2023; if you prefer an open-source licence, OpenTofu accepts the same HCL for a project like this.

Cost guard: set a budget alert in the cloud console before your first apply, avoid NAT gateways and load balancers until you need them, and destroy the stack after each session.

5. Server configuration with Ansible roles

Goal: replace the manual steps from project 1 with an idempotent playbook.

  1. Create an inventory with two groups, web and db, pointing at local VMs or the hosts from project 4.
  2. Write roles for common hardening (users, SSH, firewall), the web server and the database.
  3. Keep secrets in Ansible Vault and variables in group_vars.
  4. Add handlers so services restart only when their config changes.
  5. Test a role with Molecule and run ansible-lint in CI.

Definition of done: running the playbook twice in a row reports changed=0 on the second run. Put that output in the README; it is the simplest proof of idempotence.

Kubernetes and delivery projects

6. Kubernetes deployment with Helm

Goal: run the app and its database on Kubernetes with production-style settings.

  1. Create a local cluster with kind create cluster (or minikube).
  2. Write a Deployment, Service and ConfigMap for the app, with readiness and liveness probes and CPU and memory requests and limits.
  3. Run the database as a StatefulSet with a PersistentVolumeClaim, or use a maintained Helm chart for it.
  4. Package the app as a Helm chart with a values.yaml per environment.
  5. Expose it with the Gateway API (Gateway and HTTPRoute) using an implementation such as Envoy Gateway, Istio or Cilium. The Kubernetes project announced that the community Ingress NGINX controller would get only best-effort maintenance until March 2026 and then be retired, so Gateway API is the better skill to show now.
  6. Add a HorizontalPodAutoscaler and install metrics-server so it has data.
kind create cluster --name portfolio
helm upgrade --install todo ./charts/todo -f charts/todo/values-dev.yaml -n todo --create-namespace
kubectl -n todo rollout status deployment/todo
kubectl -n todo get hpa

Definition of done: helm upgrade with a new image tag rolls out with zero failed requests (test with a simple loop of curl calls), and deleting a pod brings it back with data intact.

7. GitOps delivery with Argo CD

Goal: make Git the only way changes reach the cluster.

  1. Create a separate config repository with Kustomize base and overlays/staging and overlays/production, or use your Helm chart with per-environment values.
  2. Install Argo CD in the kind cluster and create one Application per environment.
  3. Enable automated sync with prune and self-heal for staging; keep production on manual sync.
  4. Change your CI from project 3 so that, after pushing an image, it opens a pull request that bumps the image tag in the staging overlay.
  5. Promote to production by merging a second pull request that copies the tag.
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: todo-staging
  namespace: argocd
spec:
  project: default
  source:
    repoURL: https://github.com/your-user/todo-config.git
    targetRevision: main
    path: overlays/staging
  destination:
    server: https://kubernetes.default.svc
    namespace: todo-staging
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    syncOptions:
      - CreateNamespace=true

Definition of done: a manual kubectl edit on the staging Deployment is reverted by Argo CD within its sync interval, and a rollback is a git revert. Read what GitOps is for the model behind this project.

Operations and security projects

8. Monitoring and alerting stack

Goal: know when the app is unhealthy before a user tells you.

  1. Expose a /metrics endpoint from the app with a Prometheus client library: request count by status code and a latency histogram.
  2. Install the kube-prometheus stack (Prometheus Operator, Prometheus, Alertmanager, Grafana, node-exporter, kube-state-metrics) into the cluster.
  3. Add a ServiceMonitor for the app.
  4. Build a Grafana dashboard with the four golden signals: latency, traffic, errors and saturation.
  5. Define an availability SLO (for example 99.5% of requests succeed over 30 days) and an alert rule on the error ratio.
  6. Send alerts to an email address or a chat webhook and write a one-page runbook for the alert.
groups:
  - name: todo-availability
    rules:
      - alert: TodoHighErrorRatio
        expr: |
          sum(rate(http_requests_total{job="todo",code=~"5.."}[5m]))
            / sum(rate(http_requests_total{job="todo"}[5m])) > 0.05
        for: 10m
        labels:
          severity: page
        annotations:
          summary: "More than 5% of todo requests are failing"
          runbook_url: "https://github.com/your-user/portfolio/blob/main/runbooks/todo-errors.md"

Definition of done: you can deploy a deliberately broken image, watch the error panel rise, receive the alert and follow your runbook to roll back. Our walkthrough of Prometheus and Grafana together covers the setup in more depth.

9. DevSecOps pipeline

Goal: catch vulnerable code, dependencies and images in CI and deploy without long-lived cloud keys.

  1. Enable CodeQL code scanning for your language.
  2. Add actions/dependency-review-action on pull requests so new vulnerable dependencies fail the check.
  3. Scan the built image with Trivy or Grype and fail on critical findings with a known fix.
  4. Generate an SBOM for the image (Syft or docker buildx SBOM attestations) and a build provenance attestation with actions/attest.
  5. Replace any stored cloud access keys with OpenID Connect (OIDC) federation from GitHub Actions to your cloud provider, scoped to a branch or environment.
  6. Move application secrets into a secrets manager (HashiCorp Vault, OpenBao or the cloud provider's manager) and inject them at runtime.
  7. Pin third-party actions to full commit SHAs and let Dependabot propose updates.

Definition of done: the repository has no cloud keys in its secrets, a pull request that adds a dependency with a known critical CVE is blocked, and gh attestation verify succeeds against your published image. On GitHub Free, Pro and Team plans, artifact attestations work only in public repositories, which suits a portfolio anyway.

Why SHA pinning is on the list: in March 2026 an attacker force-pushed most version tags of the aquasecurity/trivy-action repository to malicious commits (tracked as CVE-2026-33634, advisory GHSA-69fq-xp46-6x23). Workflows pinned to a commit SHA were not affected by the moved tags.

10. Capstone: progressive delivery plus an incident review

Goal: join projects 3 to 9 into one platform and show that you can operate it.

  1. Replace the app's Deployment with an Argo Rollouts Rollout using a canary strategy (for example 20%, pause, 50%, pause, 100%).
  2. Add an AnalysisTemplate that queries Prometheus for the error ratio from project 8 and aborts the rollout if it crosses the threshold.
  3. Release a good version and watch it promote. Then release a version with an injected bug and watch the analysis abort and roll back.
  4. Run a simple failure test: delete the database pod, or block traffic to it with a NetworkPolicy, and record what the dashboards and alerts showed.
  5. Write a blameless incident review: timeline, detection, impact, root cause, what worked, and two follow-up actions.

Definition of done: a recorded demo (two to four minutes) of a canary being aborted automatically, plus the incident review in the repository. This project gives you the strongest interview story, because it shows judgement as well as tooling. Background reading: how canary releases reduce risk.

Suggested 12-week schedule

WeeksProjectsOutput by the end
1-21 and 2Hardened VM, containerized app running with Compose
33Green CI pipeline publishing images to GHCR
4-54 and 5Terraform environment you can create and destroy; Ansible roles with Molecule tests
6-76App on kind with Helm, Gateway API and autoscaling
87Argo CD managing staging and production overlays
98Dashboard, SLO alert and runbook
109Security checks, OIDC deploys, attestations
11-1210Canary with automated analysis, incident review, demo video

If you have only a month, do projects 2, 3, 6 and 8. That set covers containers, CI, Kubernetes and monitoring, which appear in most DevOps job descriptions.

How to present the projects

  • Resume: one line per project with the outcome, for example "Built a GitHub Actions pipeline that tests, scans and publishes a container image on every merge; deploys to Kubernetes through Argo CD."
  • GitHub profile: pin the capstone and two or three of the strongest projects. Add a profile README that links to each one.
  • Interview: be ready to draw the architecture from memory and explain one failure you debugged in each project.
  • Honesty: if you followed a tutorial for part of a project, say so in the README and describe what you changed. Interviewers check.

Looking for ready-made repositories to study? Our GitHub repositories for DevOps learning covers roadmaps and question banks, and GitHub repositories with hands-on DevOps projects lists demo apps such as Online Boutique and podinfo that you can use as the application in these projects.

Building these projects with a trainer

Most of these projects can be done alone with documentation and patience. If you want a mentor to review your pipeline and Kubernetes work, our DevOps training in Pune covers Linux, Docker, Jenkins and GitHub Actions, Terraform, Ansible, Kubernetes and monitoring through hands-on labs, in our Kharadi classroom or live online across India. Learners focusing on infrastructure as code can also look at Terraform training.

Frequently asked questions

How many projects do I need in a DevOps portfolio?

Three to five finished, well-documented projects are more convincing than ten half-done ones. A good minimum is a CI pipeline, an infrastructure-as-code project, a Kubernetes deployment and a monitoring setup, ideally joined into one capstone.

Can I build DevOps projects without paying for cloud?

Yes, for most of them. Docker, kind or minikube, Argo CD, Prometheus and Grafana all run on a laptop with 16 GB of RAM. Only the Terraform project and an optional cloud capstone need a cloud account; use free tiers, set a budget alert and destroy resources after each session.

Which project should a fresher start with?

Start with the Linux server and the containerized app (projects 1 and 2), then the CI pipeline. They need the least setup and teach skills every later project depends on.

Should I use GitHub Actions or Jenkins for the CI project?

Use GitHub Actions if your code is on GitHub, because there is nothing to install. Many Indian enterprises still run Jenkins, so adding a Jenkinsfile version of the same pipeline is a good extension if you target those employers.

Is it okay to use a demo application instead of writing my own?

Yes. The portfolio is about the automation around the app: Dockerfiles, pipelines, Terraform, Helm charts, dashboards and runbooks. Credit the original app in your README.

How do I keep secrets out of my public repositories?

Add a .gitignore before the first commit, store CI secrets in GitHub encrypted secrets or use OIDC instead of keys, and enable GitHub secret scanning and push protection. If a secret is ever committed, rotate it immediately; deleting the commit is not enough.

Do certifications matter more than projects?

They serve different purposes. A certification such as CKA shows you passed a structured exam; projects show you can build and debug a working system. Many candidates use both: a certification to pass screening and projects to talk through in interviews.

How long does it take to finish all ten projects?

About 12 weeks at 8 to 10 hours a week is a realistic pace for someone who already knows basic Linux and Git. Beginners should allow more time for projects 4, 6 and 10.

References

Interested in learning more?Get a callback from our training advisors.

What's Your Reaction?

Like Like 0
Dislike Dislike 0
Love Love 0
Funny Funny 0
Angry Angry 0
Sad Sad 0
Wow Wow 0
Mridul I am a passionate technology enthusiast with a strong focus on DevOps, Cloud Computing, and Cybersecurity. Through my blogs at DevOps Training Institute, I aim to simplify complex concepts and share practical insights for learners and professionals. My goal is to empower readers with knowledge, hands-on tips, and industry best practices to stay ahead in the ever-evolving world of DevOps.