mockserver icon indicating copy to clipboard operation
mockserver copied to clipboard

Use Persistent Volume Claim (PVC) in Helm Chart

Open MitchelNijdam-Rockstars opened this issue 1 year ago • 0 comments

Describe the feature request

MockServer has the ability to persistently save any expectation into a file. When running MockServer on Kubernetes, since pods are ephemeral and clear any files on restart - it would be nice to define a PVC to persistently store the configuration.

What you are trying to do

Keep MockServer's expectations persisted on Kubernetes pod restart.

The solution you'd like

  • New value in values.yaml: app.persistentVolumeClaimName
  • Update templates/deployment.yaml - if variable is defined, add volume & volumeMount
  • Add extra template for PVC - surrounded with {{ if .Values.app.persistentVolumeClaimName }}

Describe alternatives you've considered

Current alternative is manually copy-pasting the whole helm chart to our gitops repository and modifying above manually. Would be nice if it became available for everyone.

MitchelNijdam-Rockstars avatar Jul 21 '23 12:07 MitchelNijdam-Rockstars