Saltar al contenido principal
Soporte
0
Contacta con nosotros
English
Nederlands
Deutsch
Servidores dedicadosFlexible VPSTecnología de nubeUbicación compartidaDesafíos en TISectoresCareers
Cloud Compute

Con Cloud Compute, tendrás acceso a un portal desde el que podrás configurar todo tu entorno informático en cualquier momento y desde cualquier lugar del mundo.

Almacenamiento en la nube

Acceso fiable a tus archivos, infraestructura y aplicaciones en todo momento, sin interrupciones ni retrasos. En Worldstream, ofrecemos una gran variedad de soluciones de almacenamiento.

Flexible cloud icon
Nube flexible
Private cloud icon
Nube privada
Bare metal icon
Bare Metal Compute
Hollow cube icon
Almacenamiento de objetos
Hollow cube icon
Almacenamiento de archivos
Block storage icon
Almacenamiento en bloque
Backup storage icon
Almacenamiento de copias de seguridad
¿Necesitas soporte?

Con ingenieros experimentados y un tiempo medio de respuesta de 7 minutos, puedes esperar una solución de soporte técnico sólida muy rápida.

Soporte
Todos los servidores

Elige tu servidor dedicado ahora. Configuración personalizada o entrega inmediata. Servidores potentes diseñados para tu caso de uso.

Casos de uso

Sea cual sea tu caso de uso, te ayudamos a encontrar la solución adecuada.

Deal servers icon
Ofertas
AMD servers icon
Servidores AMD
AI servers icon
Servidores Intel
Hollow cube icon
Virtualización, Contenerización y Orquestación
Hollow cube icon
Sitios web y aplicaciones
Hollow cube icon
Infraestructura para gaming y streaming

Soporte 24/7/365 con un tiempo medio de respuesta de solo 7 minutos. Gracias a nuestros propios centros de datos, nuestros ingenieros pueden acceder directamente a tu servidor para ofrecer soporte rápido y directo. Contáctanos por correo o teléfono en cualquier momento.

Soporte
Externalización inteligente

Algunos aspectos de la TI crean valor añadido, mientras que otros sirven de apoyo. Aprovéchalo como punto de partida para la externalización.

Rentabilidad

Los paquetes informáticos completos pueden parecer la opción segura, pero al considerar los costes, otras opciones suelen tener más sentido.

Flexibilidad y control informáticos

Externalizar no implica perder el control; en realidad proporciona más flexibilidad y control.

Repatriación desde la nube

La nube no es el destino final: debes evaluar y ajustar tu entorno de nube continuamente a medida que cambian las necesidades.

Servicios financieros
Logística y transporte
Venta minorista y comercio electrónico
Medios de comunicación y entretenimiento
Tecnología y desarrollo de software
Seguridad
Proveedores de servicios gestionados
¿Necesitas soporte?

Con ingenieros experimentados y un tiempo medio de respuesta de 7 minutos, puedes esperar una solución de soporte técnico sólida muy rápida.

Habla con nosotrosContacta con nosotros
Acerca de WorldstreamAcerca de la tecnologíaCasosBase de conocimientos
Quiénes somosConoce al equipoTrabaja con nosotrosHazte distribuidorcertificacionesNuestros centros de datosNuestra redProtección DDoSServidores AMD EPYCPartners tecnológicosAcerca de los servidores dedicadosTodos los casosEasyTerraDutch Drone CompanyPerfGridArtículosPreguntas frecuentesNoticias y blogsProductos y servicios
Contacta con nosotros

Llama al +31 (0) 174 – 712 117 Industriestraat 53, Naaldwijk

Contacta con nosotros
Worldstream Portal
English
Nederlands
Deutsch
0
Servidores dedicadosFlexible VPSTecnología de nubeUbicación compartidaDesafíos en TISectoresCareersAcerca de WorldstreamAcerca de la tecnologíaCasosBase de conocimientosMy Worldstream
Contact
Soporte
EnglishNederlandsDeutsch
  1. InicioInicio
  2. Base de conocimientos
  3. Containers & Kubernetes
  4. Handling stateful services in containers

Handling stateful services in containers

Se aplica a Kubernetes (preview), Flexible VPS, Dedicated ServersAudiencia Platform engineer, developerÚltima revisión September 2026

Respuesta rápida

Use StatefulSets with persistent volumes for databases and other stateful workloads that genuinely need to run in containers, or keep those services on a VM or dedicated server when that's simpler. Either way, test your backup and restore procedure regularly, that's the part that actually gets skipped.

En esta página
  • Why state is the hard part
  • Pattern one: StatefulSets with persistent volumes
  • Pattern two: don't put it in a container at all
  • Whichever pattern you pick, plan the failure case

Why state is the hard part

Containers were designed around statelessness: a container can be killed and rescheduled anywhere, at any time, and that's a feature, not a bug. It's what makes auto-scaling and self-healing work. State breaks that assumption. A database container that gets rescheduled to a different node needs its data to follow it, or a way to reconnect to storage that stayed put, and it needs that to happen without corrupting anything mid-write.

None of this is Worldstream-specific: it's the same trade-off anyone running containers has to make, on any infrastructure. The two established patterns for dealing with it are covered below.

Pattern one: StatefulSets with persistent volumes

Kubernetes has a purpose-built object for this: the StatefulSet. Unlike a regular Deployment, a StatefulSet gives each pod a stable, unique network identity and a stable reference to its own persistent storage, so when a pod is rescheduled, it comes back with the same identity and reattaches to the same volume instead of starting from a blank slate.

The storage side of that is handled through PersistentVolumes and PersistentVolumeClaims: a PersistentVolumeClaim requests storage, and a PersistentVolume (backed by whatever storage class your cluster has configured) fulfils it and stays bound to that specific pod identity across reschedules. This is the standard, well-established way to run something like a small database or a message queue inside Kubernetes when you've decided it needs to live there.

It's still more operationally involved than a stateless Deployment. Things like resizing a volume, running an orderly failover, or restoring a specific replica after a crash need more care with a StatefulSet than with stateless pods, and it's worth going in with that expectation rather than discovering it during an incident.

Pattern two: don't put it in a container at all

The other legitimate answer is to not containerise the stateful part. Not entirely: containers optimise packaging and deployment; VMs provide stronger default isolation and OS flexibility. Many teams combine both, VMs for the boundaries that matter, containers for the parts that benefit from speed and repeatable deploys.

For a lot of teams, that means running the stateless application tier in containers (on Kubernetes or otherwise) while the database sits on a VPS or dedicated server, managed the way databases have always been managed: with proper backups, monitoring, and someone who understands its specific failure modes. That's not a compromise, it's often the simpler and more reliable choice, particularly if your team doesn't have deep day-to-day experience running stateful workloads on Kubernetes. See Do containers replace VMs? Choosing the right isolation model for that decision in more depth.

Whichever pattern you pick, plan the failure case

Containers sharing the host kernel is also a security and compliance consideration worth factoring in for stateful, often sensitive workloads: hardening (running rootless, using seccomp and AppArmor/SELinux profiles), image scanning and signing, and, where the compliance requirement calls for it, running the container inside a VM for stronger isolation.

Regardless of which pattern you land on, the thing that actually determines whether a stateful service survives a bad day is whether backup and restore has been tested, not just configured. A backup you've never restored from is a hope, not a plan. For the storage side of that, see the Storage category for Block Storage and Backup Storage guidance.

Related articles

  • Do containers replace VMs? Choosing the right isolation model
  • Sizing a Kubernetes cluster for high availability
  • Storage overview
¿Te ha resultado útil este artículo?

Informática sólida. Sin sorpresas

Tu socio para la madurez informática
Eliminamos barreras para que puedas correr
Costes previsibles y transparentes

Contacto

  • Industriestraat 53, Naaldwijk
Contacta con nosotros
Worldstream Portal (opens in a new tab)
  • Métodos de pago
  • Abuso
  • Recursos para desarrolladores
  • Centro de operaciones de red
  • Quiénes somos
  • Conoce al equipo
  • Trabaja con nosotros
  • Hazte distribuidor
  • certificaciones
  • Nuestros centros de datos
  • Nuestra red
  • Protección DDoS
  • Servidores AMD EPYC
  • Partners tecnológicos
  • Sistemas operativos
  • Vista general
  • Preguntas frecuentes
  • Casos
  • Noticias y blogs
  • Use Cases
English
Nederlands
Deutsch
English
Nederlands
Deutsch
  • Legal
  • Notificación de vulnerabilidades