Kubernetes · Stateful Workloads
Kubernetes Stateful Application
Service exposing a StatefulSet backed by a PersistentVolumeClaim and PersistentVolume. This diagram is written in ArchLex and passes Kubernetes provider checks.
Diagram and source
provider k8s
direction LR
validation normal
cluster production {
database_volume: persistentvolume
namespace data {
database_service: service
database: statefulset
database_claim: persistentvolumeclaim
database_service -[targets]-> database
database -[mounts]-> database_claim
database_claim -[binds]-> database_volume
}
}What is in this diagram.
Resources
- database_volume PersistentVolume
- database_service Service
- database StatefulSet
- database_claim PersistentVolumeClaim
Relationships
- database_service targets database
- database mounts database_claim
- database_claim binds database_volume
Boundaries
- cluster production
- namespace data
Render it yourself.
Save the source as k8s-stateful-application.arch and render it with the CLI, or ask your agent to adapt it through the ArchLex MCP server.
npx @archlex/cli render k8s-stateful-application.arch --output k8s-stateful-application.svgRelated examples.
- Kubernetes MicroservicesIngress and Services routing to frontend and API Deployments inside a namespace
- Kubernetes Scheduled Batch ProcessingCronJob loading runtime settings from a ConfigMap and credentials from a Secret
- Kubernetes Autoscaled Resilient APIService and Deployment protected by horizontal autoscaling and a disruption budget
- Kubernetes Namespace RBACRoleBinding granting a namespaced Role to an application ServiceAccount