The Simplest Way to Make Kustomize and Portworx Work Like They Should
Using kustomize and portworx together lets teams manage container storage across many clusters. Kustomize patches manifest files while Portworx runs the storage volumes for your apps. This pairing keeps your storage setup clean and repeatable. You write one base manifest and change small parts for each cluster. Your dev cluster can use small disks while production gets fast, mirrored drives. Teams do not need to copy and paste large files by hand. How kustomize and portworx handle roles and d
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 kustomize and portworx together lets teams manage container storage across many clusters. Kustomize patches manifest files while Portworx runs the storage volumes for your apps.
This pairing keeps your storage setup clean and repeatable. You write one base manifest and change small parts for each cluster. Your dev cluster can use small disks while production gets fast, mirrored drives. Teams do not need to copy and paste large files by hand.
How kustomize and portworx handle roles and data
The workflow starts inside your version control system. Engineers define base storage classes and volume claims in plain text files. Then they create small overlays for each stage, like testing or production. Kustomize merges these files before sending them to the cluster API.
Once the cluster receives the merged files, the storage engine takes over. Portworx reads the storage class rules and builds the requested volumes. It checks the cluster roles to verify the app can claim that disk. Your deployment tool needs permission to create storage classes and persistent volume claims. The storage driver uses its own service account to attach disks to nodes.
Data flows from the app pod straight to the mounted volume. If the overlay asks for volume encryption, the storage driver checks for keys. It reads those keys from a Kubernetes secret or an external store. Kustomize can generate secret references per cluster so dev keys stay separate from production. This keeps the setup clean and avoids mixing test data with live customer records.
Common failure modes and how to scope roles
Many teams hit trouble when they share one service account across all clusters. A broad token in a deployment pipeline can wipe out live storage volumes. Another common failure is putting raw encryption keys inside git overlays. If someone reads the repo, they can manage your volume snapshots.
End-to-End Encryption + Kustomize Security Overlays: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Unlogged storage changes also create big risks for platform teams. When an engineer changes a storage class by hand, the next deploy breaks. Kustomize tries to apply the old overlay and fails on immutable volume fields. Teams also struggle when overlays ask for disk sizes that exceed node limits. The pods stay stuck in a pending state until someone checks the cluster logs.
To fix these issues, scope down your cluster roles right away. Give your deployment pipeline a role that only updates volume claims in one namespace. Never let standard app pipelines alter cluster-wide storage classes or storage node rules. Keep a separate admin pipeline with strict review steps for global storage changes.
You should also lock down network paths between your nodes and storage backends. Use network policies so only approved app pods can talk to storage ports. Store your volume keys outside of git and load them at runtime. When you mask sensitive data in logs, rewrite emails, phone numbers, and card numbers. This keeps your audit trails safe while engineers check failed storage mounts.
Govern statements and responses across databases and APIs
Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.
First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.
Frequently asked questions
Can Kustomize resize an existing Portworx volume?
Yes, if the storage class allows volume expansion. You update the size in your overlay and apply it to the cluster.
How do we keep volume encryption keys out of git?
Use an external secret manager with your cluster. Kustomize only holds the secret name while the cluster fetches the real key.
Why do storage class patches fail during deployment?
Many storage class fields cannot change after creation. Give the updated storage class a new name in your overlay instead.
Related guides
In this post