Skip to content
Neil Cresswell, CEO November 2, 2021 1 min read

Persistent Disk or StatefulSet? The right way and the wrong way to make apps persist state inside a K8s cluster- Neil Cresswell Interviewed on the CNCF 'Data for Kubernetes

Portainer CEO Neil Cresswell joined the Data for Kubernetes Livestream and Podcast last week to discuss working with persistent states inside of Kubernetes.

Watch the full interview here or listen via Anchor podcasts. While you're here check out this incredible drawing/note taking from a member of the DOK community below.

Kubernetes-NeilCresswell 2


There is confusion amongst Kubernetes users as to when you should make a Deployment with a PVC and when you should use a StatefulSet with a PVC. There is also a general lack of understanding when it comes to disk access policies, what RWO/RWX mean and what they allow you to do. These concepts are complicated and require a deep level of understanding in order to avoid users making bad decisions that they come to regret later.

In this talk we will explore when you should use each type and what things you need to think about before making a decision. We'll also explore in detail how to safely deploy a multi-replica application with persistence using Portainer.

As part of the talk we will explore disk access policy, understand what RWO really is and how RWX disk access changes the equation in regards to persistence.


From this talk delegates will learn the difference between persistent disk and StatefulSet. They will learn when to use each (and when not to) and what are the pitfalls they should be aware of when deploying multi replica apps. They will also learn what is disk access policy, what is RWO and how RWX disk access changes the equation in regards to persistence



Neil Cresswell, CEO

Neil brings more than twenty years’ experience in advanced technology including virtualization, storage and containerization.