24

k8s的StatefulSet(有状态服务)实现-宁愿失败,也不要犹豫

 4 years ago
source link: https://blog.51cto.com/14320361/2470549
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
StatefulSet介绍遇到的问题:使用Deployment创建的Pod是无状态的,当挂在Volume之后,如果该Pod挂了,ReplicationController会再run一个来保证可用性,但是由于是无状态的,Pod挂了的时候与之前的Volume的关系就已经断开了,新起来的Pod无法找到之前的Pod。但是对于用户而言,他们对底层的Pod挂了没有感知,但是当Pod挂了之后就无法再使用之前挂载

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK