pingidentity / helm-charts

Apache License 2.0
22 stars 31 forks source link

Pingfederate StatefulSet persistentvolume creation #274

Closed KiranmaiKalla closed 1 year ago

KiranmaiKalla commented 1 year ago

We are trying to attach existing persistentvolumeClaim to PF-admin pod, but it while deploying by default it is creating the pvc again. Is there a way to use existing pvc.

Below is our config, please help.

henryrecker-pingidentity commented 1 year ago

You may be able to use selector with labels to pick your existing volume. Just add the corresponding labels to the volume you want to use. You'll need to ensure you have separate volumes for any separate pods.

pingfederate-admin:
  enabled: true
  workload:
    type: StatefulSet
    statefulSet:
      persistentvolume:
        enabled: true
        volumes:
          out-dir:
            mountPath: /opt/out
            persistentVolumeClaim:
              selector:
                matchLabels:
                  foo: foo
                  bar: bar

https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/#persistentvolumeclaimspec-v1-core