The Simplest Way to Make Cohesity and Fluxcd Work Like They Should
Using cohesity and fluxcd together pairs enterprise data backups with GitOps cluster state sync. This setup lets platform teams restore both stateful storage volumes and declarative cluster files fast. FluxCD watches your Git repo and keeps your Kubernetes cluster state matching those files. Cohesity snapshots persistent volumes and cluster objects to protect data against loss or bad edits. When both tools run in the same cluster, they need clear rules so they do not clash. If FluxCD overwrites
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Using cohesity and fluxcd together pairs enterprise data backups with GitOps cluster state sync. This setup lets platform teams restore both stateful storage volumes and declarative cluster files fast.
FluxCD watches your Git repo and keeps your Kubernetes cluster state matching those files. Cohesity snapshots persistent volumes and cluster objects to protect data against loss or bad edits. When both tools run in the same cluster, they need clear rules so they do not clash. If FluxCD overwrites a backup restore job, your recovery workflow will fail right away.
How cohesity and fluxcd share cluster roles and data
Both tools run controllers inside your Kubernetes cluster and talk to the central API server. FluxCD pulls manifests from Git and applies them to namespaces on a set schedule. Cohesity runs an agent in the cluster to find namespaces, volumes, and app metadata. To set up this workflow, you define Cohesity backup agents as standard Kubernetes manifests in Git.
FluxCD reads those manifests and installs the Cohesity agent across your target clusters. After setup, the Cohesity agent logs in to the Kubernetes API using a service account. It reads volume claims and creates snapshot jobs based on your protection policy rules. Meanwhile, FluxCD checks the agent pods to make sure they stay up and match Git.
Data flows in two clear paths during normal daily operations. Control data moves from Git through FluxCD into the cluster API to manage app state. Backup data moves from persistent storage volumes through the Cohesity agent to external backup storage. Separating these two paths keeps your Git repo clean and your storage snapshots safe.
Common failure modes and how to scope roles
The biggest failure mode happens during a disaster recovery restore when both tools fight. When Cohesity restores a namespace or volume, FluxCD might see a drift from Git. FluxCD will then try to overwrite the restored resources before the backup job finishes. Teams must pause FluxCD sync on that app before they start a Cohesity restore.
Another common issue is giving both tools broad cluster admin keys that never expire. If a team shares one service account between deployment and backup controllers, audit logs get messy. You cannot tell if a volume deletion came from a Git commit or a backup job. Broad keys also increase the blast radius if an attacker steals a controller token.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix this by giving each tool its own scoped Kubernetes role. Give FluxCD rights to write only the app namespaces and agent manifests it manages. Give the Cohesity service account rights to read cluster metadata and manage volume snapshots. Use network policies so the backup agent only talks to the Kubernetes API and backup storage. Never store raw storage keys or cluster tokens in plain text inside your Git repo. Use encrypted secret files so FluxCD can apply keys safely without exposing raw values.
Best practices for testing GitOps backup recovery
A backup plan only works if your team tests the full restore path often. Set up a test namespace where FluxCD deploys a sample app with a persistent volume. Let Cohesity take a full snapshot of that volume and the app state. Next, suspend FluxCD sync on that test namespace and delete the volume to fake an outage.
Run the Cohesity restore job and wait for the storage volume to come back online. Check the app logs to make sure the database reads the restored files without errors. Finally, resume FluxCD sync so it takes over management of the running pods again. Running this drill every month helps your team find role or network gaps early.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Should Cohesity back up the FluxCD system namespace?
No, you do not need to back up the FluxCD controllers with volume snapshots. You can rebuild the FluxCD setup in minutes straight from your Git repo.
How do we stop FluxCD from overwriting a Cohesity restore?
Suspend FluxCD sync for the target app before you start the Cohesity restore job. Once Cohesity finishes restoring the volume and pods, turn FluxCD sync back on.
Where should we store Cohesity registration tokens in a GitOps workflow?
Store encrypted registration tokens in Git using a secret encryption tool that FluxCD reads. FluxCD decrypts the token inside the cluster and passes it to the Cohesity agent.
Related guides
In this post