Skip to content

[agent-local]: add ephemeral volume and StatefulSet support for cache/data directories #197

Description

@Boniker

Issue

The chart supports two storage modes for persistence.cache and persistence.data:

  • emptyDir - cache lost on every pod restart
  • PersistentVolumeClaim - single PVC shared across all pods, it's incompatible with replicaCount > 1 and ReadWriteOnce since only one node can mount at a time
  • ReadWriteMany (like efs) - works with multiple replicas but adds significant cost due to provisioned throughput requirements

Neither option works correctly for multi-replica deployments. Without native support we patch the chart's rendered cache-dir volume via a kustomize JSON patch at a hardcoded volume index - fragile and breaks native Helm workflows.

Opportunities

Generic ephemeral volumes

Generic ephemeral volumes provision a dedicated PVC per pod automatically, tied to the pod lifecycle. Each agent gets its own cache that persists across container restarts but is cleaned up on pod termination.

StatefulSet support

A StatefulSet with volumeClaimTemplates is the canonical Kubernetes pattern for stateful workloads needing per-pod persistent storage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions