menu_book Course Curriculum (Kubernetes) expand_more
Workloads
Containers & Probes
Configuration
Networking
Storage
Scheduling
Security
StatefulSet manifest
Learn StatefulSet manifest in Kubernetes with a dedicated explanation, a topic-specific example, edge guidance, and a mastery check.
12 min read
•
Beginner
kubernetes-004.yml
yaml
apiVersion: apps/v1
kind: StatefulSet
metadata: {name: ledger}
spec:
serviceName: ledger
replicas: 3
selector: {matchLabels: {app: ledger}}
template:
metadata: {labels: {app: ledger}}
spec:
containers: [{name: db, image: postgres:16}]
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content