Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 1.02 KB

File metadata and controls

22 lines (13 loc) · 1.02 KB

Stateful Service

Description

In a stateful application, every instance is unique and knows its own identity, and the main ingredients of that identity are the long-lived storage and the networking coordinates.

StatefulSet is designed for managing non-fungible Pods, as opposed to ReplicaSet, which is for managing identical replaceable Pods.

Networking:

Each Pod will get a DNS entry where clients can directly reach out to it in a predictable way. For example, if app has a name app, we can reach our app-0 Pod through its fully qualified domain name: app-0.service-name.default.svc.cluster.local , where the Pod’s name is prepended to the Service name.

References

[1] StatefulSet Basics

[2] Deploying Cassandra with a StatefulSet

[3] Graceful scaledown of stateful apps