Repository navigation
k8s sandbox设计疑问: 生命周期长短 vs PVC持久卷的价值 #3040
Unanswered
focusnothing
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
我的认知是sandboxclaim -> sandbox -> pod, 三者一一对应,只要claim被删除,后面两者也会级联删除。
若claim保持30分钟,包含PVC在内都会保持30分钟,这30分钟内pod因特殊情况进行了迁移的话,PVC才有意义, 但这是小概率吧。
若claim一直不删除,pod销毁不了,就一直占用资源。
是否可以让claim保留更长时间比如1个月, sandbox 30分钟后进行挂起 (将operatingMode改为Suspended),pod进行销毁。
当下一次call时将sandbox拉起,通过对应PVC进行热恢复。
如此,既保证资源不会被一只占用, 又提高PVC的使用率。
All reactions