Using ephemeral volumes for the StatefulSets
Ephemeral storage volume, such as emptyDir{}
volumes, is tied to the
lifecycle of a pod. This volume gets created when the pod is started and deleted when it is stopped.
This makes them suitable for workloads where data persistence is not required beyond the lifecycle
of a pod.
Prerequisites
- Ephemeral storage is recommended for the fresh installations.s
- Self-managed Kubernetes clusters
You must manually create the
appdata-volume
andmongodb-data-volume
because these volumes refer to the file storage. - OpenShift Container Platform (OCP) cluster
There is no need to manually create volumes since the Persistent Volumes (PV) are provisioned dynamically.
Enabling ephemeral storage
Update the following configurations in the
ipm_14.0.x_cr.yaml
file.- enable_persistent_volume
- Set the value of the enable_persistent_volume flag to
false
. - logsearch
- If you want to store pod logs for monitoring through the OpenSearch, set the value of the
logsearch flag to
1
.
Manually creating volumes
Update the following in the volumes.yaml file and update the
namespace
and storageClassName
fields before applying the
command.
namespace: <namespace>
storageClassName: <storageclass>