Kubernetes & GitOps Infrastructure

A production EKS platform where every change flows through Git and can be reverted.

Project overview

Client
Confidential client (under NDA)
Industry
Software and technology
Role
Principal DevOps Engineer (sole engineer on the platform workstream)
Scope
EKS design, GitOps delivery, autoscaling, backup and upgrade process

Business challenge

  • Services were deployed with ad hoc kubectl commands, so the live cluster differed from what was in Git.
  • Resource requests and limits were guesses, causing both wasted capacity and evictions.
  • Cluster upgrades were avoided because nobody trusted the process, leaving the version behind.

Existing infrastructure

  • A self-managed cluster built by hand, with node configuration that differed between nodes.
  • Manifests duplicated across environments with small, undocumented differences.
  • No tested backup of cluster resources or persistent volumes.

Architecture

Target architecture: GitOps delivery on Amazon EKSFour layers: Git and CI, the GitOps controller, the EKS cluster workloads, and the AWS foundation. ArgoCD reconciles Helm and Kustomize manifests from Git into the cluster, while Velero backs up resources and volumes to S3.Git & CIApp repoCI build + scanConfig repoGitOpsArgoCDHelm chartsKustomize overlaysEKS clusterIngressWorkloadsAutoscalingPrometheusAWSTerraform-managed VPCManaged node groupsVelero backups to S3
Target architecture: GitOps delivery on Amazon EKS. Simplified to protect client confidentiality.

Engineering approach

  1. Define the cluster, networking and node groups in Terraform, so the platform itself is reproducible.
  2. Adopt a separate configuration repository where each environment is an overlay of shared Helm charts.
  3. Let ArgoCD reconcile the cluster from Git, with automated sync for staging and reviewed promotion for production.
  4. Set resource requests and limits from observed usage, and add horizontal and node autoscaling.
  5. Schedule Velero backups, test restores, and document a repeatable upgrade procedure.

Technologies used

  • Amazon EKS
  • Kubernetes
  • Terraform
  • ArgoCD
  • Helm
  • Kustomize
  • Velero
  • Prometheus
  • Grafana

Security considerations

  • RBAC is limited per team, and cluster access is through SSO instead of shared credentials.
  • Pod security standards and network policies restrict workload behavior.
  • IAM roles for service accounts replace node-wide cloud permissions.
  • Container images are scanned in CI, and secrets come from a managed secret store.

Implementation

  1. Platform Terraform-defined EKS cluster, node groups, ingress and core add-ons.
  2. GitOps ArgoCD installed, configuration repository structured, first services migrated.
  3. Right-size Resource policies and autoscaling tuned from Prometheus data.
  4. Protect Velero schedules, restore test and documented recovery steps.
  5. Operate Upgrade runbook rehearsed in staging, then production, with team handover.

Results and improvements

Technical improvements

  • Git is the source of truth, and drift is visible and corrected by the controller.
  • Rollback is a Git revert instead of an improvised command sequence.
  • Resource settings are based on measurement, reducing both waste and evictions.
  • Cluster upgrades and restores are rehearsed processes.

Lessons learned

  • Keep the first GitOps structure simple. Complex app-of-apps layouts can be added later.
  • Resource tuning needs at least a few weeks of real usage data.
  • A restore test finds problems that a backup report never shows.

Related services

Facing a similar challenge?

Share your current setup and goals, and I will suggest a practical approach.

Discuss Your Project