GitOps Workflow with Flux CD
Advanced · 45 minutes · 100 points
In this advanced lab, you will simulate a GitOps workflow using Flux CD concepts by setting up a local Git repository, configuring Flux CD CLI tooling, defining Kubernetes-style manifest structures, and implementing automated reconciliation logic using shell scripting and YAML manifests. You will learn how Flux CD operates under the hood by building the core components of a GitOps pipeline from scratch inside a containerized environment.
What you’ll learn
- Understand the Flux CD GitOps repository structure and manifest conventions
- Create and manage a local Git repository that simulates a Flux CD source repository
- Define HelmRelease, Kustomization, and GitRepository YAML manifests following Flux CD specifications
- Implement a shell-based reconciliation loop that mimics Flux CD sync behavior
- Validate manifests and reconciliation state using Flux CLI and yamllint tooling
How this lab works
- Start the lab: One click starts a container on your computer with a real terminal: nothing to install by hand, nothing to clean up.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work runs each task’s checks in your container and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: A container on your computer, with a real terminal
- Image: ubuntu:22.04
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop installed and running
Topics: gitops, flux-cd, ci-cd, helm, kustomize, yaml, kubernetes-manifests, reconciliation, devops
Create a free account to start this lab.