Deploying and Operating a (GKE) K8S using GitOps (Flux)

man riding on yellow forklift
Photo by ELEVATE on Pexels.com

Summary

k8sfluxops is a GitOps repository that manages a complete Kubernetes infrastructure on GKE using Flux v2.

https://github.com/rtrentinavx/k8sfluxops

It demonstrates a production-grade setup with:

🎯 Core Purpose

Declarative, Git-driven management of Kubernetes infrastructure where all changes are version-controlled and automatically reconciled by Flux.

📦 What It Deploys

CategoryComponents
IngressTraefik (routes / → nginx, /boutique/ → Online Boutique)
ObservabilityGrafana, Jaeger, OpenTelemetry Collector, Hubble UI, Kube-ops-view
Policy/SecurityOPA Gatekeeper with 4 constraint templates, Policy Manager UI
Cost ManagementKubecost
BackupVelero with GCS backend + UI
Cluster MgmtRancher, Weave GitOps dashboard
Demo AppsOnline Boutique (10 microservices with OTel tracing), Nginx
AutoscalingHPA for Online Boutique & Nginx, VPA recommendations

🔄 GitOps Flow

Git Push → Flux detects change → Reconciles to cluster → Apps/Infra updated

🏗️ GKE Features Used

Dataplane V2 (Cilium), Node Auto-Provisioning, VPA, Workload Identity, gVNIC, Managed Prometheus.

This repo essentially serves as a reference architecture for running a fully-featured, observable, and policy-enforced Kubernetes platform using GitOps principles.

References

https://github.com/rtrentinavx/k8sfluxops

Leave a Reply