Skip to content

Conversation

@catpineapple
Copy link
Contributor

@catpineapple catpineapple commented Apr 17, 2025

What problem does this PR solve?

This PR allows users to mount a shared persistent volume into different pods. This ability is handy for sharing plugins.
If you want to install the same plugin into different components' pods, and you don't want to install it many times for different pods. you can use this ability.
example as follows:

spec:
  sharedPersistentVolumeClaims:
  - mountPath: /mnt/xxx/xx
    persistentVolumeClaimName: share-pvc
    supportComponents:
    - fe
    - be
  • mountPath is the absolute path in the container. mountPath also supports an environment variable ${DORIS_HOME} config in the prefix path.
    For FE, the ${DORIS_HOME} is /opt/apache-doris/fe.
    For BE, the ${DORIS_HOME} is /opt/apache-doris/be.
    this can be used to mount a shared pv into same relative path to ${DORIS_HOME}, because many plugins need to install the relative path of ${DORIS_HOME} to all fe, be.
  • persistentVolumeClaimName is the persistentVolumeClaim's name that you should have created before deploying doris cluster. the pesistentVolumeClaim should have ReadWriteMany accessMode.
  • supportCompoents specify what components need mount the shard pv. if the supportComponents is empty, it represents all component need mount the shard pv.

Issue Number: close #372

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

Copy link
Contributor

@intelligentfu8 intelligentfu8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check

@intelligentfu8
Copy link
Contributor

check variables
check function name.

Copy link
Contributor

@intelligentfu8 intelligentfu8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@intelligentfu8 intelligentfu8 merged commit e05848d into apache:master Apr 18, 2025
1 check passed
@catpineapple catpineapple mentioned this pull request Apr 21, 2025
@intelligentfu8 intelligentfu8 changed the title [feature](dcr) enable configure the shared pvc that needs to be mounted on the pod [feature](dcr) provide shared pvc that mounts the same path in all pods of specify components Apr 21, 2025
@intelligentfu8 intelligentfu8 changed the title [feature](dcr) provide shared pvc that mounts the same path in all pods of specify components [feature](dcr) provide shared “ReadWriteMany” pvc that mounts the same path in all pods of specify components Apr 22, 2025
@catpineapple catpineapple deleted the share_pvc branch December 3, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement] Mounting a shared PVC to all pods in a Doris cluster

2 participants