Skip to content

Conversation

Danny-Wei
Copy link
Member

What this PR does

Resolves data accessibility issues in multi-replica manager deployments by adding persistent volume (PV) support for LocalDisk-type ArmorProfileModel objects, enabling data sharing across manager instances.

Key Features Added

  • Introduced behaviorModeling.usePersistentVolume Helm value to toggle PV usage for LocalDisk-type ArmorProfileModel data
  • Added Helm template configurations for persistent volume integration:
    • Defined persistentVolume settings with configurable PVC claim name (varmor-manager-apmdata-pvc)
    • Maintained existing emptyDir volume as default storage option
    • Updated volume mounts to use shared storage path /var/log/varmor/apmdata across instances

Benefits

  • Enables data consistency across manager replicas in multi-instance deployments
  • Prevents data loss during leader re-election by centralizing LocalDisk-type ArmorProfileModel data
  • Improves reliability of ArmorProfileModel import/export operations across manager restarts
  • Provides flexibility to scale storage beyond node-local emptyDir limits

Notes

  • Requires manual creation of a PVC named varmor-manager-apmdata-pvc in the manager namespace before enabling usePersistentVolume
  • emptyDir remains default with a 500Mi size limit for lightweight deployments

@Danny-Wei Danny-Wei merged commit 6771f10 into release-0.8 Aug 8, 2025
@Danny-Wei Danny-Wei added the feature New feature label Aug 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant