-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Search before asking
- I had searched in the issues and found no similar issues.
Description
Description:
I'm using the Apache Doris Operator to deploy Doris in a Kubernetes cluster. I've created a PVC using NFS storage and want to mount it to all pods in the cluster using ReadWriteMany. However, the current implementation creates separate PVCS for each pod, rather than allowing me to specify a shared PVC by name.
Expected Behavior:
I would like to request an enhancement to allow specifying a PVC by name when mounting it to pods. This would enable me to use a single, shared PVC across all pods in the cluster.
Use Case:
This enhancement would be useful for scenarios where multiple pods need to access shared data, such as:
- Java UDFs that need to access shared libraries or data
- Parquet files (or CSV etc.) that need to be stored and accessed by multiple pods for the Broker
- Any other use case where shared data is required across multiple pods
Solution
To achieve this, I propose adding a new field to the Pod or Deployment configuration that allows specifying the name of the PVC to use. For example:
apiVersion: doris.selectdb.com/v1
kind: DorisCluster
metadata:
name: doriscluster-sample
spec:
beSpec:
...
pod:
...
volumes:
- name: shared-pvc
persistentVolumeClaim:
claimName: my-shared-pvc
mountPath: /shared/data
In this example, the claimName field would specify the name of the PVC to use, allowing all pods to share the same PVC. Proposing to add this to FE, BE and Broker.
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct