Option 1: Creating the persistent volume (PV) and the persistent volume claim (PVC) manually

This task provides the procedure for manually creating the persistent volume (PV) and the persistent volume claim (PVC) required by the Enterprise Records container deployment process.

Procedure

  1. Persistent volume (PV):
    1. Create a file for the persistent volume configuration, ier-pv.
    2. Save the file as ier-pv.yaml.
    3. Run the following command:
      kubectl apply -f ier-pv.yaml
  2. Persistent volume claim (PVC):
    1. Create a file for the persistent volume claim configuration, ier-pvc:
      apiVersion: v1
      kind: PersistentVolumeClaim
      metadata:
        name: ier-instance
        namespace: <my_project>
      spec:
        accessModes:
          - ReadWriteMany
        resources:
          requests:
            storage: 1Gi
        volumeName: ier-pv

      Where <my_project> stands for the name of the project where FileNet Content Manager is deployed.

    2. Save the file as ier-pvc.yaml.
    3. Run the following command:
      kubectl apply -f ier-pvc.yaml
  3. Set the following permission on the folders which are mounted as persistent volumes, as provided in Step 1a (that is /var):
    chown -Rf 50001:0 /var
    chmod -Rf g=u /var

Example