Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Option for subPath in persistentVolumeClaim volumes #594

Open
Fran-Rg opened this issue Jul 12, 2024 · 0 comments
Open

[feat] Option for subPath in persistentVolumeClaim volumes #594

Fran-Rg opened this issue Jul 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Fran-Rg
Copy link
Contributor

Fran-Rg commented Jul 12, 2024

Is your feature request related to a problem? Please describe.
I would like to share a PVC between clickhouse and postgres (as dependencies of plausible). For that I'm interested in splitting each DB volume path under their own directory

Describe the solution you'd like

            {{- if eq (include "base.persistence.enabled" . ) "true" }}
            - name: {{ include "base.persistence.suffix" (include "clickhouse.fullname" . ) }}
              mountPath: {{ .Values.persistentVolumeClaim.mountPath }}
-->           subPath: {{ .Values.persistentVolumeClaim.subPath }}
            {{- end }}

with .Values.persistentVolumeClaim.subPath: "" in values.yaml

https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/#volumemount-v1-core

Describe alternatives you've considered
2 PVCs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants