liveBook · Manning

StatefulSet

As explained in Google Anthos in Action

A Kubernetes StatefulSet is a resource that manages replicated pods with stable identities and persistent storage associations.

A StatefulSet manages replicated Pods for stateful applications, preserving stable Pod identities and associating each Pod with persistent storage. Its deployment specification is organized alongside Services, PersistentVolumes, and PersistentVolumeClaims. section 15.4.3

A StatefulSet deployment commonly coordinates:

  • Pods deployed from an image generated by a VM migration. section 15.4.3
  • PersistentVolumes that provide durable storage. section 15.4.3
  • PersistentVolumeClaims that request storage size and access mode. section 15.4.3
  • A Service that provides network access, optionally through a LoadBalancer. section 15.4.3

Migrating a stateful application

A Migrate for Anthos deployment_spec.yaml can define a StatefulSet for a migrated VM image, persistent storage resources, a Service, and logging configuration. Applying the generated specification deploys the application into the cluster. section 15.4.3

How Google Anthos in Action covers it

How deep it goes
Explains the StatefulSet’s YAML role and surrounding storage resources but does not detail identity or update mechanics.
Examples
Uses a Migrate for Anthos deployment specification containing a migrated VM image, storage resources, Service, and logging configuration.
What it assumes
Assumes familiarity with Kubernetes Pods, Services, YAML specifications, and persistent storage resources.
What you can do after
Evaluate how a Kubernetes deployment specification represents a stateful application and its durable storage requirements.
How it connects
Connects StatefulSet with Pods, Services, PersistentVolumes, PersistentVolumeClaims, logging, and VM migration.

Also explained in

Compare how 4 books explain StatefulSet →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Google Anthos in Action. The section links point to the parts of the book it draws on.