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

Share PVC between pods in HA setup #89

Open
hbollon opened this issue Feb 15, 2024 · 1 comment
Open

Share PVC between pods in HA setup #89

hbollon opened this issue Feb 15, 2024 · 1 comment

Comments

@hbollon
Copy link

hbollon commented Feb 15, 2024

Hello,

I'm currently planning to evolve our PrivateBin instance to have multiples replicas.
I currently use it with a Statefulset and a PVC, however, I noticed that if I add a replica it will create his own PVC which cause issues to open URLs generated with the pod A on the pod B and vice versa.
Does it exist a trick with this chart to solve this behavior? If no, can it be an interesting feature to add?

Thanks in advance !

@janosmiko
Copy link

I've created a dedicated PVC in RWX mode using longhorn and mounted that PVC for the deployments.

pvc.yaml

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: privatebin-pvc
  namespace: privatebin
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 10Gi
  storageClassName: longhorn

values.yaml

replicaCount: 2
controller:
  kind: Deployment

extraVolumes:
  - name: privatebin-pvc
    persistentVolumeClaim:
      claimName: privatebin-pvc

extraVolumeMounts:
  - name: privatebin-pvc
    mountPath: /srv/data

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

No branches or pull requests

2 participants