GitOps Fleet on EKS with Flux, Signed Promotion and Tenant Isolation

Build a two-cluster GitOps fleet on Amazon EKS with Flux: every change checked by a pipeline, published to ECR as a signed OCI artifact, promoted from staging to production by digest, decrypted with per-environment KMS keys and applied by each team's own namespace-limited identity.

DevOps Engineer. Advanced.

What you will build and explain

  • Explain how a reviewed commit becomes running workloads on two EKS clusters, and what each Flux controller does at each step.
  • Structure a fleet repository with Kustomize bases, overlays and ordered Flux stages, and build a pipeline that renders, validates and policy-checks it and proves its own checks fail on bad changes.
  • Publish OCI artifacts signed through AWS KMS, make clusters refuse anything unsigned, and promote the exact digest staging applied to production, with rollback.
  • Keep secrets encrypted in Git with SOPS and per-environment KMS keys, and confine teams to their namespaces with impersonation, Flux's lockdown flags, quotas, Pod Security and Kyverno.
  • Deploy the clusters with Terraform using access entries and EKS Pod Identity, diagnose reconciliation failures, recover from drift and loss, and remove every billable resource.

Before you begin

  • Terminal and Git use (branches, commits, diffs); reading and editing YAML; Kubernetes Deployments, Services, ConfigMaps, Secrets and Namespaces, and basic kubectl get, describe, logs and apply
  • Reading a short Terraform configuration; signing in to AWS with the AWS CLI version 2; knowing what an IAM role and policy are; running a container with Docker
  • A computer with Docker, Bash, Git and the AWS CLI, an AWS account where you may create EKS clusters, VPCs, IAM roles, KMS keys, ECR and S3 in one Region, a spending limit and a time window of about three hours

Curriculum

Learning topics (18)
  1. Understand the brief and prepare your tools

    Quillfield Payments, a fictional payments processor, runs two Kubernetes clusters on Amazon EKS, staging and production, shared by a platform team and two product teams: payments, which runs a public API, and ledger, which runs a background worker. Until now engineers changed the clusters from their laptops with kubectl apply and helm upgrade, and last quarter's incident review listed what that allowed: a production hotfix silently overwritten, two environments that drifted a

  2. Follow a change from a commit to two clusters

    This chapter explains the whole fleet before the lessons take it apart. It follows one change: a reviewed commit that raises the ledger worker's replica count in production. On the way it passes a pipeline, becomes a signed artifact, runs in staging, is promoted by digest, and is finally applied in production by the team's own identity. Read it once now and come back whenever a lesson mentions a part you have not met yet.

  3. Controllers that keep pulling

    Quillfield's worst incident last quarter was a hotfix that vanished. Someone ran kubectl edit on production at 2 a.m., the fix worked, and three days later the next deploy from the repository quietly put the old value back. Nobody had done anything wrong by the rules of the time; the rules were the problem. The cluster had two sources of truth, the repository and whatever people typed, and neither knew about the other.

  4. Bases, overlays and stages

    Quillfield has two clusters that should be almost identical, two teams that should not see each other's files, and a platform team that must install Kyverno before anyone's workload arrives. All of that has to be expressed in one repository, without copying the same manifest four times and without letting "almost identical" quietly become "different in ways nobody chose".

  5. What check.sh refuses

    A cluster is the most expensive place to discover a typo. By the time Flux reports that ledger-apps is not Ready, the artifact is signed, staging is stuck on it, and the promotion gate is closed until someone publishes a fix. The pipeline exists to find those problems on your computer, in seconds, before anything is published, and to say exactly which file and rule failed.

  6. OCI artifacts and signatures

    The auditor's question from Quillfield's incident review was simple: "Which configuration runs in production, and can you prove it is the one you reviewed?" Answering it needs two things. The configuration a cluster runs must have a name that can only ever mean one exact content, and the cluster must be able to tell, by itself, that this content came from Quillfield's release process and not from someone with write access to a registry.

  7. Promotion by digest, and rollback

    "It passed in staging" is only useful if production then runs the thing that passed. At Quillfield it often did not: production was deployed from a branch that had moved on since staging's deploy, or rebuilt with a newer base image, or applied with a slightly different values file. The bytes production ran had never run anywhere before.

  8. Secrets with SOPS and KMS

    Quillfield's database passwords lived in a private repository in plain text and were pasted into chat when someone needed one. Everything else in the fleet now comes from Git, so the secrets must too, but Git is the last place a plain password should be: every clone, every CI log and every former employee's laptop has a copy of the history.

  9. Network, access and workload identity

    A GitOps fleet asks three things of its cloud. Each cluster must be reachable by the people who administer it and by nobody else. Flux inside each cluster needs just enough AWS access to pull its artifact and decrypt its secrets. And everything else running in the cluster should have no AWS access at all. This lesson shows how the Terraform in this project answers those three on Amazon EKS, and what it deliberately simplifies.

  10. Teams inside their namespaces

    Last quarter a payments deploy deleted a ConfigMap that belonged to the ledger team. Nobody meant to: both teams deployed into a shared namespace with the same broad credentials, and the payments team's tooling pruned what it did not recognise. In a GitOps fleet the same accident is easier, not harder, because Flux runs with cluster-admin rights and applies whatever the repository says. If the payments folder contains a manifest for the ledger namespace, Flux would happily ap

  11. Admission policy with Kyverno

    RBAC answers "may this identity create a Deployment here?" It says nothing about what the Deployment contains. The ledger team is allowed to create pods in ledger, so RBAC will happily admit a pod with no memory limit that grows until the node runs out, an image tagged latest that changes under everyone's feet, or an image from a registry nobody has vetted. Quillfield wants rules about content, enforced for every team, at the moment objects reach the cluster, and the same rul

  12. Charts, values and post-renderers

    The payments team does not write its own Deployment. Its API is packaged as a Helm chart by the software's publisher, as most third-party software is, and so is Kyverno. Before GitOps, someone ran helm upgrade from a laptop with a values file that might or might not be the one in the repository. This lesson shows how Flux installs and upgrades charts from Git instead: where the chart comes from and how it is verified, how values and environment overrides work, how to change w

  13. Drift, recovery and upgrades

    A fleet is judged on its bad days. Someone scales a Deployment by hand during an incident. Someone deletes a namespace they thought was unused. Flux itself is removed by a mistaken command. A cluster is lost. And on ordinary days, Flux, Kyverno and Kubernetes all need upgrading. This lesson explains what the fleet does in each case, why, and where a person must act, so that you can predict the outcome before it happens. It builds on every earlier Flux lesson.

  14. Status, events and a diagnosis method

    Sooner or later scripts/status.sh shows a row with READY False, or a promotion is refused because a staging Kustomization is "not ready". The fleet tells you a great deal about what went wrong, but in several places: object conditions, Kubernetes events, controller logs, and the workloads themselves. This lesson gives you an order to look in, the commands for each step, and the common failure reasons, so that a red row turns into a cause in minutes. It also covers the routine

  15. Deploy the fleet, release a change and roll it back

    This guide takes you from an empty AWS account to two EKS clusters that run Quillfield's fleet from signed artifacts, through a change promoted from staging to production and a rollback, and leaves you ready for the cleanup guide. Every command runs from the source/ folder of the project on your computer. The steps are in dependency order; each says what exists before it, what it creates, and what the next step uses.

  16. Troubleshoot the fleet from its own evidence

    Almost every problem in this fleet first shows up as one of three things: a source that is not Ready or not verified, a Kustomization or HelmRelease that is not Ready, or a promotion the gate refuses. The first useful question is always how far did this change get? Was it published and signed, pulled and verified, built, applied, healthy? The fleet records each of those steps, and the scenarios practise reading them. Start with the scenario list and pick a symptom.

  17. Explain the fleet's decisions in an interview

    Interviews for DevOps and platform roles rarely ask you to recite a tool's flags. They ask you to walk through a system, justify its choices, and reason about what happens when a constraint changes. This project gives you a complete system to talk about: one change travelling from a commit to two clusters, with a reason for every step. The question list is grouped by topic, each with a model answer, talking points and follow-ups.

  18. Remove the fleet and check for leftovers

    Everything the lab created in AWS is removed by one script, in the reverse order of creation, followed by a check that asks AWS directly for anything left with your prefix. Run it as soon as you have finished: the clusters cost about USD 0.47 per hour until they are gone. Cleanup works whether or not the deployment finished.

Practical build steps (7)
  1. Build the toolbox and run the checks

    Before anything exists in AWS, you build the container that holds every tool, run the checks that will guard every release, and put the fleet under Git. Nothing in this milestone costs money or needs an AWS account.

  2. Create the infrastructure

    This milestone creates everything in AWS that the fleet runs on: a state bucket, then two VPCs and EKS clusters, the ECR repository for artifacts, the signing key, a SOPS key per environment and the two narrow roles Flux's controllers use. It is the first billable step.

  3. Encrypt the secrets and publish the first release

    Two steps turn the repository into something a cluster can pull: the teams' credentials are encrypted with each environment's KMS key and committed, and the commit is published to ECR as a signed artifact tagged staging.

  4. Bootstrap staging, promote, bootstrap production

    This milestone installs Flux on both clusters and hands each one over to its published state: staging first, then, after the promotion gate, production.

  5. Verify the fleet

    With both clusters running, verify.sh proves, group by group, that the fleet does what the architecture promises: the right artifact everywhere, services answering with their environment's configuration, secrets decrypted only in the right cluster, teams boxed in, bad artifacts and workloads refused.

  6. Release a change and roll it back

    The everyday workflow: change a file, check, commit, publish, let staging apply it, promote the same digest to production, and, when something is wrong, roll production back to an earlier digest.

  7. Remove the fleet and check for leftovers

    The last milestone deletes everything the lab created in AWS and proves nothing is left, so the hourly cost stops.

Access

Learning Access: INR 199 plus 18% GST. Source Pack: INR 399 plus 18% GST. 90 days of online access. No auto-renewal.

Cloud costs and boundaries

AWS usage is separate from project access. While both EKS clusters run, the lab costs about USD 0.47 per hour in ap-south-1 at on-demand prices (two EKS control planes, four m7g.large nodes, their public IPv4 addresses and disks, three KMS keys); a three-hour deployment, verification and cleanup session costs about USD 1.40. Charges continue until cleanup finishes. Reading and local checks cost nothing. This is a learning reference, not a hosted lab or a production-readiness guarantee.

Licence and completion

Vectametric Project Source Licence (2026-09-27): lawfully obtained source may be copied, modified and deployed for personal learning and interview preparation, including personal portfolio demonstrations with attribution. These permissions continue after online access expires. Do not resell or redistribute the Source Pack or its original source files, unchanged or modified. Commercial or client production use requires separate written permission. Third-party components downloaded when building or running the lab, such as Flux and its installation manifests, Kyverno, podinfo, Terraform and its AWS provider, the AWS CLI, kubectl, Kustomize, kubeconform, SOPS, cosign and yq, retain their own licences. See LICENSE.txt and the Project Source Licence section of the site Terms for the full rules.

Questions about projects

Do I need a cloud account?

You can read the project material without deploying it. Running a cloud build requires the accounts, permissions and tools listed in that project's prerequisites. Deployment runs in your environment, not in a hosted Vectametric lab.

Can I read the code with Learning Access?

Yes. Learning Access includes the online source-file browser and explanations. The Source Pack adds the downloadable reference repository where available. The project's licence governs use of the source.

Are cloud charges included?

No. Cloud and CI usage are separate. Read the project's cost notice, set a budget and stop deadline, and follow its destruction and leftover-resource checks.

Does the project include troubleshooting and interview preparation?

The project curriculum lists the available scenarios and interview topics. These focus on understanding the architecture and explaining decisions; they are not a promise of particular interview questions or a job.

How long can I use the project?

The project page and checkout show the online access period for your selected plan. Access does not auto-renew. Downloaded source remains subject to its licence; future releases are not automatically included.

Review the Terms and No-Refund Policy before confirming access. All sales are final; Vectametric does not offer refunds.

This website is operated by VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED, operating as Vectametric.

Corporate Identity Number (CIN): U85499KA2026OPC229822. GSTIN: 29AAMCV8281D1ZS. Registered office: RS NO/38/2A/1 BASTAND, ROAD MAHANTESH NAGAR, Ramdurg, Ramdurg, Belgaum- 591123, Karnataka.

Queries and grievances: Prajval Honnungar, Grievance Officer and Data Protection Contact.

Telephone: +91 94800 09310. Support: support@vectametric.com. Grievances: support@vectametric.com.

Copyright 2026 VECTAMETRIC EDTECH (OPC) PRIVATE LIMITED. All rights reserved.

Vectametric home · Roadmaps · Vecta IT Exams · Vecta Government Exams · Vecta Banking & Finance Exams · Vecta Entrance Exams · About us · Contact · Privacy Policy · Terms and Conditions · No-Refund Policy