Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

multi volumeClaimTemplate support on elasticsearch chart #49

Closed
batrako opened this issue Jan 29, 2019 · 2 comments
Closed

multi volumeClaimTemplate support on elasticsearch chart #49

batrako opened this issue Jan 29, 2019 · 2 comments

Comments

@batrako
Copy link

batrako commented Jan 29, 2019

With elasticsearch , in some cases , we need some extra volumes with your own properties to store snapshots or backups (for example). Current version , only supports one VolumeClaimTemplate. Could be very useful for us, support for multi volumes on elasticsearch group nodes.
Thanks

@Crazybus
Copy link
Contributor

Crazybus commented Feb 1, 2019

The repository used for taking snapshots needs to be a shared file system.

In order to register the shared file system repository it is necessary to mount the same shared filesystem to the same location on all master and data nodes.

Adding the ability to allow multiple volumeClaimTemplates wouldn't work for a snapshot repository. As it would create a separate persistent volume claim for each node.

Instead it sounds like we need to add the ability to mount extra volumes. This would only work for storage that supports ReadWriteMany. Another alternative is to use one of the repository plugins if one of those backends is available to you.

This is what would need to be added to make this work:

  1. Ability to define extra persistentVolumeClaims.
  2. Ability to mount persistent volume claims as volumes.

The configuration would look something like this:

persistentVolumesClaims:
  claimName:
    accessModes:
      - ReadWriteMany
    volumeMode: Filesystem
    resources:
      requests:
        storage: 8Gi
    storageClassName: slow
    selector:
      matchLabels:
        release: "stable"

persistentVolumeMounts:
  claimName: /usr/share/elasticsearch/snapshots

@Crazybus
Copy link
Contributor

Support for mounting extra volumes and volume mounts was added in #70.

Can you try it out and see if it works for you? If not feel free to reopen this issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants