<p>I am using JBPM business-central which is deployed on K8s.
Below is my depolyment.apps where the persistent volume is attached .</p>

<pre><code>kubectl edit deployment.apps/jbpm-server-full
     volumes:
      - name: jbpm-pv-storage
        persistentVolumeClaim:
          claimName: jbpm-pv-claim
</code></pre>

<p>But when i restart the pod i am losing all the workspaces in business-central even though we have attached persistent volumes attached to the k8S pod.</p>

anil kumar
<p>You need to mount that volume inside the container and write data into the mounted path</p>

<pre><code>apiVersion: v1
kind: Pod
metadata:
  name: task-pv-pod
spec:
  volumes:
    - name: task-pv-storage
      persistentVolumeClaim:
        claimName: task-pv-claim
  containers:
    - name: task-pv-container
      image: nginx
      ports:
        - containerPort: 80
          name: "http-server"
      volumeMounts:
        - mountPath: "/usr/share/nginx/html"
          name: task-pv-storage
</code></pre>

<p><a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/" rel="nofollow noreferrer">https://kubernetes.io/docs/tasks/configure-pod-container/configure-persistent-volume-storage/</a></p>
