Skip to content
Securely manage Docker, Swarm, Kubernetes and Podman clusters in the cloud, on-premise, and in the data center.
Secure app deployment and device management for your Industrial IoT, IoT and Edge devices.
Let Portainer's Managed Platform Services accelerate your containerization journey.
Manage all your Docker, Swarm, Kubernetes and Podman clusters from a single secure interface.
Portainer empowers Platform Engineering teams to deliver efficient, user-centric services.
Empower your business by adopting containerization the easy way with Portainer.
Deploy to and manage your fleet of remote devices centrally and securely.
Onboard, manage and deploy workloads across hundreds of devices securely with Portainer.
Deployment scenarios
Partner Solutions
blog-banner
Neil Cresswell, CEONovember 1, 20211 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

ABSTRACT OF THE TALK

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.

TAKE-AWAYS

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

 

avatar

Neil Cresswell, CEO

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

COMMENTS

Related articles