Giter VIP home page Giter VIP logo

Comments (9)

xiaoq17 avatar xiaoq17 commented on June 26, 2024

What's the difference with a Deployment with volumes and a StatefulSet with volumes (besides controller's yaml format) ? Volume lifecycle might be a key point.

  • Stateful -> StatefulSet, data/volumes live even when application ends(deleted), user could use in other application or remove it manually.
  • Stateless -> Deployment, data/volumes only live when application lives, recycled when application ends.

We could keep it with sufficient tooltip explanations in product to avoid misunderstanding. Does it make sense?

from rudder.

kdada avatar kdada commented on June 26, 2024

@xiaoq17
Deployment's volumes are created by ReleaseController, but StatefulSet's volumes are created by Kubernetes StatefulSetController. ReleaseController don't know it.

ReleaseController will clean all garbages when a release is deleted except PVCs created by StatefulSet. The behavior may make users confused.

from rudder.

ddysher avatar ddysher commented on June 26, 2024

Are we creating volume via posting PVC to kubernetes and have it create PV for us?

Deployment's volumes are created by ReleaseController

Adding a switch sounds like the most flexible approach. My data shouldn't have separate meaning on what type of application I'm deploying, even for stateless apps, retaining data is beneficial for situation like cold start.

from rudder.

kdada avatar kdada commented on June 26, 2024

Are we creating volume via posting PVC to kubernetes and have it create PV for us?

Not all. If a user create a volume with type Dynamic, ReleaseController will create a PVC for it.

The main concern is that ReleaseController don't know which PVC is created by StatefulSetController. It causes that ReleaseController is forced to leave them in cluster.

The simplest way is that ReleaseController leaves all PVCs in cluster whoever it is created by.

from rudder.

ddysher avatar ddysher commented on June 26, 2024

What is the reclaim policy for PV created here?

ReleaseController will create a PVC for it.

No information provided via StatefulSetController? Sounds like we can send a patch...

The main concern is that ReleaseController don't know which PVC is created by StatefulSetController

This is fine if we want to deliver the feature quickly; but it's better to have a switch though.

The simplest way is that ReleaseController leaves all PVCs in cluster whoever it is created by.

from rudder.

pendoragon avatar pendoragon commented on June 26, 2024

I'd prefer having a switch in API and let users decide whether to keep the pvc.

from rudder.

xiaoq17 avatar xiaoq17 commented on June 26, 2024

I'd prefer having a switch in API and let users decide whether to keep the pvc.

More precisely, the switch might exist in :

  • create API as a spec: application.autoRemovePVC == true/false
  • delete API as a param or a action:
    • "你确定要删除应用 XXX 吗?(checkbox) 同时删除全部应用数据:volume1, volume2"
    • 类似于 "你确定要卸载程序 XXX 吗?(checkbox) 同时删除用户数据和存档"

I prefer latter.

from rudder.

pendoragon avatar pendoragon commented on June 26, 2024

+1

I prefer latter.

from rudder.

kdada avatar kdada commented on June 26, 2024

Discussed offline. All PVCs are left to Resource Center.

from rudder.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.