HCL Component Pack 7 – Multiple Namespaces – Persistent Volumes

Posted by

Each Component Pack instance requires persistent storage. But I don’t want to deal with that manually. I installed this nfs provisioner to handle all the persistent volumes for me, if the claim has the correct storageclass, nfs-client in my example.

The claims for the mongo pods just worked. I had to create elasticsearch claims manually. As an example the claim for the elasticsearch backup storage:

---
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  namespace: connect6
  name: es-pvc-backup-7
  labels:
    component: elasticsearch7
spec:
  accessModes:
    - ReadWriteMany
  storageClassName: nfs-client
  resources:
    requests:
      storage: 8Gi

Each persistent volumen es then created on my nfs server dynamically.