SlideShare a Scribd company logo
Being Stateful In Kubernetes
Presented By : Sahil Sawhney
Sr.
Software Consultant
@lihas5
Agenda
In this session we will explore how feasible it is to deploy
a stateful services over Kubernetes.
Introduction
Knowing Kubernetes
Types Of Services
Understanding stateful and stateless services
Stateful Sets And Operators
Knowing how to deploy a stateful Service
Case Study With Demo
Lets See Things Rolling
Kubernetes, The Buzz
Kubernetes is a production grade open source
orchestration system used to deploy, scale and
manage containerised applications. It is based on
the same principles that allow Google to run billions
of containers a week.
Container Platform
With Kubernetes you can
orchestrate your fleet of
containers with ease.
Microservices Platform
K8 could also be used as a
platform for deploying your
microservice architecture
Portable Cloud Platform
K8 as a platform makes it
easier to deploy, scale,
and manage apps
Service Types
Stateless Applications
Single-Instance Stateful Application
Replicated Stateful Application
Nginx, My Play/Akka-Http Application
or any other stateless Microservice.
My single node mysql with a
persistent volume.
Use a StatefulSet to create a
Cassandra ring.
Comparing Our Protagonists
services applies operations on the input
data and produces an output. Fos same
set of inputs, the output will always be
same.
Stateless
means the system can be in different
states ie. The same input can produce
different output based on other
information in the system
Stateful
Once Upon A Time ...
The classic containerized approach of deploying a
microservice architecture meant this :
Spark
I am a processing engine. My mistake is
that i sometimes I do stateful operations.
Kafka
I am a message queue. My mistake is that I
persist the inter service comm. messages.
Cassandra
I am a NOSQL Db. My mistake is that I can
scale easily on bare metals.
Elasticsearch
Hang me please …..
Kubernetes is not just a platform to run your containers. It provides various other rich
features like network management and persistent storage which could be exploited so
as to deploy your microservice architecture that follow Reactive Manifesto:
But Isn't Kubernetes All About Containers ?
The Saviour
StatefulSets are valuable for applications that
require one or more of the following.
Stable, unique network identifiers.
Graceful deployment and scaling.
automated rolling updates.
Stable, persistent storage.
Use Case
Used majorly to deploy stateful
services like
1). Databases (Mysql, MongoDB, ES)
2). Queues (Kafka)
Many more ...
Stateful Sets
Noida, NSEZ
+919871211045
sahil.sawhney.10
@lihas5
Thank You!
Stay in Touch

More Related Content

What's hot (20)

PDF
Run the elastic stack on kubernetes with eck
Daliya Spasova
 
PPTX
Key features of rails 5.2 (2)
Namrata Ukirde
 
PPTX
Donabe-essex-conference-readout
Debojyoti Dutta
 
PDF
MicroService...Don't repeat SOA
Vasu Thiyagarajan
 
ODP
Floss cloud
ilugc
 
DOCX
cloudcomputing.docx
jyotirajputpawar
 
PPTX
Azure container instances
Karthikeyan VK
 
PDF
Run Containerized Database SQL Server 2017 Linux
Nilesh Gule
 
PPTX
Uri budnik moving from virtualized infrastructure to open stack-4.17.13
OpenStack Foundation
 
PDF
Cncf event driven autoscaling with keda
JurajHantk
 
PPTX
Turning Virtual Machines Cloud-Native using KubeVirt
Suman Chakraborty
 
PDF
4 - Customer story: Telenet
Kangaroot
 
PPT
Cloud comptuting
logeshprabu
 
PDF
What Does Kubernetes Look Like?: Performance Monitoring & Visualization with ...
InfluxData
 
PPTX
AWS UG #14
Jacek Biernat
 
PDF
jclouds High Level Overview by Adrian Cole
Everett Toews
 
PPTX
d2iq, d2iq konvoy, day 2 operations, lifecycle management, mayadata, mayadata...
MayaData Inc
 
PPTX
How ddd, cqrs and event sourcing constitute the architecture of the future
MSDEVMTL
 
PDF
K8s in 2hours
DEV Cafe
 
PPTX
Deploying a 3 tier application using docker
parth2094
 
Run the elastic stack on kubernetes with eck
Daliya Spasova
 
Key features of rails 5.2 (2)
Namrata Ukirde
 
Donabe-essex-conference-readout
Debojyoti Dutta
 
MicroService...Don't repeat SOA
Vasu Thiyagarajan
 
Floss cloud
ilugc
 
cloudcomputing.docx
jyotirajputpawar
 
Azure container instances
Karthikeyan VK
 
Run Containerized Database SQL Server 2017 Linux
Nilesh Gule
 
Uri budnik moving from virtualized infrastructure to open stack-4.17.13
OpenStack Foundation
 
Cncf event driven autoscaling with keda
JurajHantk
 
Turning Virtual Machines Cloud-Native using KubeVirt
Suman Chakraborty
 
4 - Customer story: Telenet
Kangaroot
 
Cloud comptuting
logeshprabu
 
What Does Kubernetes Look Like?: Performance Monitoring & Visualization with ...
InfluxData
 
AWS UG #14
Jacek Biernat
 
jclouds High Level Overview by Adrian Cole
Everett Toews
 
d2iq, d2iq konvoy, day 2 operations, lifecycle management, mayadata, mayadata...
MayaData Inc
 
How ddd, cqrs and event sourcing constitute the architecture of the future
MSDEVMTL
 
K8s in 2hours
DEV Cafe
 
Deploying a 3 tier application using docker
parth2094
 

Similar to Being Stateful In Kubernetes (20)

PDF
The State of Stateful on Kubernetes
DoKC
 
ODP
Stateful applications on kubernetes
Akash Agrawal
 
PPTX
Stateful set in kubernetes implementation & usecases
Krishna-Kumar
 
PDF
The Highs and Lows of Stateful Containers
C4Media
 
PDF
Designing Stateful Apps for Cloud and Kubernetes
Evan Chan
 
PPTX
Running Stateful Apps on Kubernetes
Yugabyte
 
PDF
Managing Stateful Applications in Kubernetes
All Things Open
 
PDF
Why kubernetes for Serverless (FaaS)
Krishna-Kumar
 
PDF
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar
CodeOps Technologies LLP
 
PPTX
Dok Talks #113 - Developing Stateful Application on Kubernetes
DoKC
 
PDF
Kubernetes Cheatsheet
Alex Hisaka
 
PDF
Running and Managing Kubernetes on OpenStack
Victor Palma
 
PDF
Open Source Summit NorthAmerica 2017 Stateful Apps in Containers
Steve Wong
 
PPTX
Run Stateful Apps on Kubernetes with VMware PKS - Highlight WebLogic Server
Simone Morellato
 
PPTX
Application portability with kubernetes
Oleg Chunikhin
 
PPTX
Docker Kubernetes Training in Ameerpet - Docker Kubernetes Course.pptx
venkatakrishnavisual
 
PDF
Containers and Kubernetes without limits
Antje Barth
 
PDF
Kubernetes Basics - ICP Workshop Batch II
PT Datacomm Diangraha
 
PDF
The future of serverless is STATE!
Ryan Knight
 
PPTX
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
VMUG IT
 
The State of Stateful on Kubernetes
DoKC
 
Stateful applications on kubernetes
Akash Agrawal
 
Stateful set in kubernetes implementation & usecases
Krishna-Kumar
 
The Highs and Lows of Stateful Containers
C4Media
 
Designing Stateful Apps for Cloud and Kubernetes
Evan Chan
 
Running Stateful Apps on Kubernetes
Yugabyte
 
Managing Stateful Applications in Kubernetes
All Things Open
 
Why kubernetes for Serverless (FaaS)
Krishna-Kumar
 
Kubernetes for Serverless - Serverless Summit 2017 - Krishna Kumar
CodeOps Technologies LLP
 
Dok Talks #113 - Developing Stateful Application on Kubernetes
DoKC
 
Kubernetes Cheatsheet
Alex Hisaka
 
Running and Managing Kubernetes on OpenStack
Victor Palma
 
Open Source Summit NorthAmerica 2017 Stateful Apps in Containers
Steve Wong
 
Run Stateful Apps on Kubernetes with VMware PKS - Highlight WebLogic Server
Simone Morellato
 
Application portability with kubernetes
Oleg Chunikhin
 
Docker Kubernetes Training in Ameerpet - Docker Kubernetes Course.pptx
venkatakrishnavisual
 
Containers and Kubernetes without limits
Antje Barth
 
Kubernetes Basics - ICP Workshop Batch II
PT Datacomm Diangraha
 
The future of serverless is STATE!
Ryan Knight
 
01 - VMUGIT - Lecce 2018 - Fabio Rapposelli, VMware
VMUG IT
 
Ad

More from Knoldus Inc. (20)

PPTX
Angular Hydration Presentation (FrontEnd)
Knoldus Inc.
 
PPTX
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Knoldus Inc.
 
PPTX
Self-Healing Test Automation Framework - Healenium
Knoldus Inc.
 
PPTX
Kanban Metrics Presentation (Project Management)
Knoldus Inc.
 
PPTX
Java 17 features and implementation.pptx
Knoldus Inc.
 
PPTX
Chaos Mesh Introducing Chaos in Kubernetes
Knoldus Inc.
 
PPTX
GraalVM - A Step Ahead of JVM Presentation
Knoldus Inc.
 
PPTX
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
PPTX
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
PPTX
DAPR - Distributed Application Runtime Presentation
Knoldus Inc.
 
PPTX
Introduction to Azure Virtual WAN Presentation
Knoldus Inc.
 
PPTX
Introduction to Argo Rollouts Presentation
Knoldus Inc.
 
PPTX
Intro to Azure Container App Presentation
Knoldus Inc.
 
PPTX
Insights Unveiled Test Reporting and Observability Excellence
Knoldus Inc.
 
PPTX
Introduction to Splunk Presentation (DevOps)
Knoldus Inc.
 
PPTX
Code Camp - Data Profiling and Quality Analysis Framework
Knoldus Inc.
 
PPTX
AWS: Messaging Services in AWS Presentation
Knoldus Inc.
 
PPTX
Amazon Cognito: A Primer on Authentication and Authorization
Knoldus Inc.
 
PPTX
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Knoldus Inc.
 
PPTX
Managing State & HTTP Requests In Ionic.
Knoldus Inc.
 
Angular Hydration Presentation (FrontEnd)
Knoldus Inc.
 
Optimizing Test Execution: Heuristic Algorithm for Self-Healing
Knoldus Inc.
 
Self-Healing Test Automation Framework - Healenium
Knoldus Inc.
 
Kanban Metrics Presentation (Project Management)
Knoldus Inc.
 
Java 17 features and implementation.pptx
Knoldus Inc.
 
Chaos Mesh Introducing Chaos in Kubernetes
Knoldus Inc.
 
GraalVM - A Step Ahead of JVM Presentation
Knoldus Inc.
 
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
Nomad by HashiCorp Presentation (DevOps)
Knoldus Inc.
 
DAPR - Distributed Application Runtime Presentation
Knoldus Inc.
 
Introduction to Azure Virtual WAN Presentation
Knoldus Inc.
 
Introduction to Argo Rollouts Presentation
Knoldus Inc.
 
Intro to Azure Container App Presentation
Knoldus Inc.
 
Insights Unveiled Test Reporting and Observability Excellence
Knoldus Inc.
 
Introduction to Splunk Presentation (DevOps)
Knoldus Inc.
 
Code Camp - Data Profiling and Quality Analysis Framework
Knoldus Inc.
 
AWS: Messaging Services in AWS Presentation
Knoldus Inc.
 
Amazon Cognito: A Primer on Authentication and Authorization
Knoldus Inc.
 
ZIO Http A Functional Approach to Scalable and Type-Safe Web Development
Knoldus Inc.
 
Managing State & HTTP Requests In Ionic.
Knoldus Inc.
 
Ad

Recently uploaded (20)

PPTX
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
PPTX
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
PPTX
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
PPTX
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
PPTX
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PPTX
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
PDF
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
PPTX
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
PDF
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
PDF
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
PDF
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
PDF
Add Background Images to Charts in IBM SPSS Statistics Version 31.pdf
Version 1 Analytics
 
PPTX
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
PPTX
Smart Doctor Appointment Booking option in odoo.pptx
AxisTechnolabs
 
PDF
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
PPTX
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
PDF
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 
Homogeneity of Variance Test Options IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Empowering Asian Contributions: The Rise of Regional User Groups in Open Sour...
Shane Coughlan
 
iaas vs paas vs saas :choosing your cloud strategy
CloudlayaTechnology
 
Finding Your License Details in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Coefficient of Variance in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Comprehensive Risk Assessment Module for Smarter Risk Management
EHA Soft Solutions
 
AEM User Group: India Chapter Kickoff Meeting
jennaf3
 
Change Common Properties in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Home Care Tools: Benefits, features and more
Third Rock Techkno
 
UITP Summit Meep Pitch may 2025 MaaS Rebooted
campoamor1
 
Customise Your Correlation Table in IBM SPSS Statistics.pptx
Version 1 Analytics
 
AI + DevOps = Smart Automation with devseccops.ai.pdf
Devseccops.ai
 
MiniTool Partition Wizard Free Crack + Full Free Download 2025
bashirkhan333g
 
AOMEI Partition Assistant Crack 10.8.2 + WinPE Free Downlaod New Version 2025
bashirkhan333g
 
Add Background Images to Charts in IBM SPSS Statistics Version 31.pdf
Version 1 Analytics
 
OpenChain @ OSS NA - In From the Cold: Open Source as Part of Mainstream Soft...
Shane Coughlan
 
Smart Doctor Appointment Booking option in odoo.pptx
AxisTechnolabs
 
Generic or Specific? Making sensible software design decisions
Bert Jan Schrijver
 
ChiSquare Procedure in IBM SPSS Statistics Version 31.pptx
Version 1 Analytics
 
Technical-Careers-Roadmap-in-Software-Market.pdf
Hussein Ali
 

Being Stateful In Kubernetes

  • 1. Being Stateful In Kubernetes Presented By : Sahil Sawhney Sr. Software Consultant @lihas5
  • 2. Agenda In this session we will explore how feasible it is to deploy a stateful services over Kubernetes. Introduction Knowing Kubernetes Types Of Services Understanding stateful and stateless services Stateful Sets And Operators Knowing how to deploy a stateful Service Case Study With Demo Lets See Things Rolling
  • 3. Kubernetes, The Buzz Kubernetes is a production grade open source orchestration system used to deploy, scale and manage containerised applications. It is based on the same principles that allow Google to run billions of containers a week. Container Platform With Kubernetes you can orchestrate your fleet of containers with ease. Microservices Platform K8 could also be used as a platform for deploying your microservice architecture Portable Cloud Platform K8 as a platform makes it easier to deploy, scale, and manage apps
  • 4. Service Types Stateless Applications Single-Instance Stateful Application Replicated Stateful Application Nginx, My Play/Akka-Http Application or any other stateless Microservice. My single node mysql with a persistent volume. Use a StatefulSet to create a Cassandra ring.
  • 5. Comparing Our Protagonists services applies operations on the input data and produces an output. Fos same set of inputs, the output will always be same. Stateless means the system can be in different states ie. The same input can produce different output based on other information in the system Stateful
  • 6. Once Upon A Time ... The classic containerized approach of deploying a microservice architecture meant this : Spark I am a processing engine. My mistake is that i sometimes I do stateful operations. Kafka I am a message queue. My mistake is that I persist the inter service comm. messages. Cassandra I am a NOSQL Db. My mistake is that I can scale easily on bare metals. Elasticsearch Hang me please …..
  • 7. Kubernetes is not just a platform to run your containers. It provides various other rich features like network management and persistent storage which could be exploited so as to deploy your microservice architecture that follow Reactive Manifesto: But Isn't Kubernetes All About Containers ?
  • 8. The Saviour StatefulSets are valuable for applications that require one or more of the following. Stable, unique network identifiers. Graceful deployment and scaling. automated rolling updates. Stable, persistent storage. Use Case Used majorly to deploy stateful services like 1). Databases (Mysql, MongoDB, ES) 2). Queues (Kafka) Many more ... Stateful Sets