Skip to content

Feature Request: Support emptyDir option #114

@smanpathak

Description

@smanpathak

I am working on an on-prem deployment with mysql-operator. For baremetal deployments, storage can come from

  1. A storage provider from commercial storage vendor.
  2. Host local volumes/NFS
  3. Host directory.

I am hoping that the final deployment is as simple as possible, without overly relying on quality of external storage provider. With 1 and 2, I faced issues.

  1. For external storage providers (at least the ones I worked on), the K8s integration is not that great. These providers don't scale well and make the deployment unstable.
  2. The local volume provider: (https://github.com/kubernetes-incubator/external-storage/tree/master/local-volume/provisioner) suffers from issues: (a) It does not clean up properly, so if a new statefulset re-uses a deleted volume, it sometimes gets unclean state from previous DB (b) If a node dies, the replica is lost because volume claim is specific to the lost node.

Given these issues, can we support emptyDir as option for volumes? If the user knows what they are doing and make sure sufficient replicas are always available, all the shortcomings above can be overcome.
Happy to work on it, if this makes sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions