SlideShare a Scribd company logo
Kubernetes Clusters Need Persistent Data
© StorageOS, Inc.
About Me: James Spurin
• StorageOS Product Evangelist, formerly a
founding StorageOS Advisory Board member
• 20+ years of Engineering experience covering
Storage, Automation, DevOps and Software
Development
• Previously worked at Nomura, Goldman Sachs, Dell
EMC and many more - Connect with me on
LinkedIn
• Published Technical Author: Dive Into Ansible
• How organisations are using Kubernetes
• Problems + missed opportunities with ephemeral workloads
• Use of StorageClasses for Kubernetes multi tenancy
• How to simplify the transition of Legacy apps to Kubernetes
• Features like Data Encryption
• Features like Read-Write-Many volumes
• GitOps design patterns with StorageClasses
+ Demo
© StorageOS, Inc.
Agenda
• Self Managed Kubernetes (On-Prem / Cloud)
• Rancher – Kubernetes as a Service (On-Prem / Cloud)|
• OpenShift – Kubernetes with a PaaS (On-Prem / Cloud)
© StorageOS, Inc.
How is Kubernetes Deployed and Consumed
Common Approaches for Hosting and Managing Kubernetes
• Hosted Kubernetes (Amazon EKS, Microsoft AKS, Google GKE)
• Developer Environments (Self Hosted / Minikube / Kind)
© StorageOS, Inc.
How are Organisations Using Kubernetes
Kubernetes Market Adoption – Heavily utilised for Ephemeral Workloads
• Very easy to deploy and use without storage
• Application can sync/download content on init
• Pod can be destroyed/recreated for site
updates
• Very easy to deploy and use without storage
• Instances can access keys/values from other
nodes on failure
© StorageOS, Inc.
Ephemeral First Problems
When a Kubernetes environment does not factor for the use of persistent data,
we solve for ephemeral environments, this results in -
Legacy Environments running alongside Kubernetes Applications may be running in less than optimal ways
• Natively supports persistent storage
• Improves recovery time
• Re-deploying the container is not the only
answer
Scaffolding to work around non-persistent storage
… no really …
© StorageOS, Inc.
Ephemeral First Problems
PersitentVolume:
NodeAffinity has been used to restrict this
workload so that it can only runs on
k8snode1
This achieves “Persistent Storage” but
sacrifices the benefits, of Kubernetes!
What happens if k8snode1 fails?
Example ”Workaround”
© StorageOS, Inc.
Treating Persistent Data like Networking Technologies
A typical setup procedure or consideration when deploying a Kubernetes
cluster is the Installation of a networking technology as a DaemonSet
StorageOS installs as an Operator
and runs as a DaemonSet
© StorageOS, Inc.
Unlocking the Full Potential of Kubernetes
Adding an advanced dataplane like unlocks
huge potential across the entire Kubernetes cluster
+ =
StorageClasses
• Development: Not
concerned about the
number of copies, data
to be highly available
across all nodes
• Production:
Highly available
with 2 replicas
© StorageOS, Inc.
• Top Secret:
Encryption Enabled
and 2 replicas
• Archived:
Compression with
1 replica
StorageClasses Promote Multi-Tenancy and Agility
© StorageOS, Inc.
Using Storage Classes and Persistent Volume Claims
* PV, Persistent Volume automatically
created as part of the claim!
© StorageOS, Inc.
Data Encryption at Rest
Data Encryption enabled via a single label
With the increased market use of Kubernetes as a cloud
managed service and strict data compliance regulations that
include the Payment Card Industry Standard (PCI DSS) and the
Health Insurance Portability and Accountability Act (HIPPA),
organisations are dependent on encrypted data as a
requirement for Kubernetes workloads using persistent storage
© StorageOS, Inc.
Transition of Legacy Applications is Simplified
Applications that rely on Persistent Data can
just be run, as you’d expect them to run
without scaffolding or legacy environments
Pool
• Allow a filesystem to be shared by multiple containers
• Useful for legacy applications (e.g. filesystem as message bus)
that rely on a shared filesystem
• ReadWriteOnce semantics – 1 application per volume
• Some applications require ReadWriteMany (RWX) semantics
• Orchestrates a user space NFS layer to provide RWX volumes
© StorageOS, Inc.
Alternative Approaches for Solution Architects – RWX Volumes
N1 N2 N3 N4 N5
• All pods, share same data
• Updates to the main volume updates all
• No restarts of Pods, needed
• Additional benefit of replicas
© StorageOS, Inc.
Containers Can Run More Effectively
Unlock intended functionality!
Redis natively supports persistent data,
improving recovery time
Without persistent storage, Redis running in a
Kubernetes environment will not make use of
this functionality
See –
https://storageos.com/redis-with-kubernetes-
persistent-storage
GitOps Approach
myapp1 (OnPrem):
Highly Available
with 2 replicas
© StorageOS, Inc.
myapp1 (Cloud):
Highly Available
with 2 replicas
+ Encryption
StorageClass shares the same name (myapp1)
but with different configurations
www.storageos.com
© StorageOS, Inc.
Demo
Further Reading
© StorageOS, Inc.
StorageOS
Platform Architecture
Overview
https://bit.ly/3r7cx6g
StorageOS
Documentation
https://docs.storageos.com
Supporting Civo’s
Lightning-Fast Managed
Kubernetes Development
and Deployment
https://bit.ly/3r4S1nD
Speak to StorageOS
Engineers on Slack
https://slack.storageos.com
Performance
Benchmarking
Cloud Native Storage
Solutions
https://bit.ly/3l8cTqQ

More Related Content

PDF
Persist your data in an ephemeral k8 ecosystem
PDF
Introducing Kubestr - A New Way to Explore Your Kubernetes Storage Options
PDF
Manage thousands of k8s applications with minimal efforts using kube carrier
PDF
Containers and OpenStack - A Happy Marriage - Madhuri - Intel - CC18
PPTX
Design Patterns for Pods and Containers in Kubernetes - Webinar by zekeLabs
PPTX
Introduction to container mangement
PDF
The service mesh management plane
PDF
Kubernetes on DC/OS
Persist your data in an ephemeral k8 ecosystem
Introducing Kubestr - A New Way to Explore Your Kubernetes Storage Options
Manage thousands of k8s applications with minimal efforts using kube carrier
Containers and OpenStack - A Happy Marriage - Madhuri - Intel - CC18
Design Patterns for Pods and Containers in Kubernetes - Webinar by zekeLabs
Introduction to container mangement
The service mesh management plane
Kubernetes on DC/OS

What's hot (20)

PPTX
Autoscaling in Kubernetes
PPTX
Micro services vs hadoop
PDF
Kafka for begginer
PDF
Containers and Kubernetes
PPTX
Building Cloud Native Applications Using Spring Boot and Spring Cloud
PPTX
PDF
A curtain-raiser to the container world Docker & Kubernetes
PPTX
Kubernetes as Orchestrator for A10 Lightning Controller
PPTX
Introduction to helm
PDF
Taking Care of Business at Office Depot with Elastic Cloud Enterprise
PDF
Jolt: Distributed, fault-tolerant test running at scale using Mesos
PDF
A quick introduction to AKS
PPTX
Distributed architecture in a cloud native microservices ecosystem
PPTX
Introduction to Container Storage Interface (CSI)
PPTX
Crash Course in Cloud Computing
PPTX
A New Centralized Volume Storage Solution for Docker and Container Cloud by W...
PPTX
Java EE Modernization with Mesosphere DCOS
PDF
Virtualized Containers - How Good is it - Ananth - Siemens - CC18
PPTX
Stratoscale Latest and Greatest
PPTX
Tech Preview: Kubernetes on Mesosphere DC/OS 1.10
Autoscaling in Kubernetes
Micro services vs hadoop
Kafka for begginer
Containers and Kubernetes
Building Cloud Native Applications Using Spring Boot and Spring Cloud
A curtain-raiser to the container world Docker & Kubernetes
Kubernetes as Orchestrator for A10 Lightning Controller
Introduction to helm
Taking Care of Business at Office Depot with Elastic Cloud Enterprise
Jolt: Distributed, fault-tolerant test running at scale using Mesos
A quick introduction to AKS
Distributed architecture in a cloud native microservices ecosystem
Introduction to Container Storage Interface (CSI)
Crash Course in Cloud Computing
A New Centralized Volume Storage Solution for Docker and Container Cloud by W...
Java EE Modernization with Mesosphere DCOS
Virtualized Containers - How Good is it - Ananth - Siemens - CC18
Stratoscale Latest and Greatest
Tech Preview: Kubernetes on Mesosphere DC/OS 1.10
Ad

Similar to Storage os kubernetes clusters need persistent data (20)

PPTX
Kubernetes Bangalore Meetup- July 2017
PDF
Think like a storage architect, in four questions
PDF
Solving k8s persistent workloads using k8s DevOps style
PDF
How to manage stateful applications in Kubernetes
PPTX
Webinar: Building a multi-cloud Kubernetes storage on GitLab
PDF
Open ebs 101
PDF
Persistent Storage with Kubernetes in Production
PPTX
Everything You Need To Know About Persistent Storage in Kubernetes
PDF
Containerized Storage for Containers: Why, What and How OpenEBS Works
PPTX
Kubernetes Storage a Deep Look
PDF
Kubernetes dealing with storage and persistence
PDF
Running stateful applications in containers with k8 s persistent volumes and ...
PPTX
DockerCon 18 docker storage
PDF
Persistent Storage with Kubernetes in Production
PDF
Persistent Storage with Kubernetes in Production
PDF
Persistent Storage with Kubernetes in Production
PDF
Docker storage designing a platform for persistent data
PPTX
OpenEBS Hangout #2 - Deploying Jupyter
PDF
Persistent Storage with Kubernetes in Production
PDF
Persistent Storage with Kubernetes in Production
Kubernetes Bangalore Meetup- July 2017
Think like a storage architect, in four questions
Solving k8s persistent workloads using k8s DevOps style
How to manage stateful applications in Kubernetes
Webinar: Building a multi-cloud Kubernetes storage on GitLab
Open ebs 101
Persistent Storage with Kubernetes in Production
Everything You Need To Know About Persistent Storage in Kubernetes
Containerized Storage for Containers: Why, What and How OpenEBS Works
Kubernetes Storage a Deep Look
Kubernetes dealing with storage and persistence
Running stateful applications in containers with k8 s persistent volumes and ...
DockerCon 18 docker storage
Persistent Storage with Kubernetes in Production
Persistent Storage with Kubernetes in Production
Persistent Storage with Kubernetes in Production
Docker storage designing a platform for persistent data
OpenEBS Hangout #2 - Deploying Jupyter
Persistent Storage with Kubernetes in Production
Persistent Storage with Kubernetes in Production
Ad

More from LibbySchulze (20)

PDF
Running distributed tests with k6.pdf
PPTX
Extending Kubectl.pptx
PPTX
Enhancing Data Protection Workflows with Kanister And Argo Workflows
PDF
Fallacies in Platform Engineering.pdf
PDF
Intro to Fluvio.pptx.pdf
PPTX
Enhance your Kafka Infrastructure with Fluvio.pptx
PDF
CNCF On-Demand Webinar_ LitmusChaos Project Updates.pdf
PDF
Oh The Places You'll Sign.pdf
PPTX
Rancher MasterClass - Avoiding-configuration-drift.pptx
PPTX
vFunction Konveyor Meetup - Why App Modernization Projects Fail - Aug 2022.pptx
PPTX
CNCF Live Webinar: Low Footprint Java Containers with GraalVM
PDF
EnRoute-OPA-Integration.pdf
PDF
AirGap_zusammen_neu.pdf
PDF
Copy of OTel Me All About OpenTelemetry The Current & Future State, Navigatin...
PDF
OTel Me All About OpenTelemetry The Current & Future State, Navigating the Pr...
PDF
CNCF_ A step to step guide to platforming your delivery setup.pdf
PDF
CNCF Online - Data Protection Guardrails using Open Policy Agent (OPA).pdf
PDF
Securing Windows workloads.pdf
PDF
Securing Windows workloads.pdf
PDF
Advancements in Kubernetes Workload Identity for Azure
Running distributed tests with k6.pdf
Extending Kubectl.pptx
Enhancing Data Protection Workflows with Kanister And Argo Workflows
Fallacies in Platform Engineering.pdf
Intro to Fluvio.pptx.pdf
Enhance your Kafka Infrastructure with Fluvio.pptx
CNCF On-Demand Webinar_ LitmusChaos Project Updates.pdf
Oh The Places You'll Sign.pdf
Rancher MasterClass - Avoiding-configuration-drift.pptx
vFunction Konveyor Meetup - Why App Modernization Projects Fail - Aug 2022.pptx
CNCF Live Webinar: Low Footprint Java Containers with GraalVM
EnRoute-OPA-Integration.pdf
AirGap_zusammen_neu.pdf
Copy of OTel Me All About OpenTelemetry The Current & Future State, Navigatin...
OTel Me All About OpenTelemetry The Current & Future State, Navigating the Pr...
CNCF_ A step to step guide to platforming your delivery setup.pdf
CNCF Online - Data Protection Guardrails using Open Policy Agent (OPA).pdf
Securing Windows workloads.pdf
Securing Windows workloads.pdf
Advancements in Kubernetes Workload Identity for Azure

Recently uploaded (20)

PDF
Slides PDF The World Game (s) Eco Economic Epochs.pdf
PDF
Decoding a Decade: 10 Years of Applied CTI Discipline
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Testing WebRTC applications at scale.pdf
PDF
Tenda Login Guide: Access Your Router in 5 Easy Steps
PDF
Unit-1 introduction to cyber security discuss about how to secure a system
PPTX
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
PPTX
artificial intelligence overview of it and more
PDF
Paper PDF World Game (s) Great Redesign.pdf
PDF
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
Introuction about ICD -10 and ICD-11 PPT.pptx
DOCX
Unit-3 cyber security network security of internet system
PPTX
E -tech empowerment technologies PowerPoint
PPT
tcp ip networks nd ip layering assotred slides
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
INTERNET------BASICS-------UPDATED PPT PRESENTATION
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PDF
Introduction to the IoT system, how the IoT system works
Slides PDF The World Game (s) Eco Economic Epochs.pdf
Decoding a Decade: 10 Years of Applied CTI Discipline
SAP Ariba Sourcing PPT for learning material
Testing WebRTC applications at scale.pdf
Tenda Login Guide: Access Your Router in 5 Easy Steps
Unit-1 introduction to cyber security discuss about how to secure a system
June-4-Sermon-Powerpoint.pptx USE THIS FOR YOUR MOTIVATION
artificial intelligence overview of it and more
Paper PDF World Game (s) Great Redesign.pdf
How to Ensure Data Integrity During Shopify Migration_ Best Practices for Sec...
522797556-Unit-2-Temperature-measurement-1-1.pptx
Introuction about ICD -10 and ICD-11 PPT.pptx
Unit-3 cyber security network security of internet system
E -tech empowerment technologies PowerPoint
tcp ip networks nd ip layering assotred slides
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
international classification of diseases ICD-10 review PPT.pptx
INTERNET------BASICS-------UPDATED PPT PRESENTATION
RPKI Status Update, presented by Makito Lay at IDNOG 10
Introduction to the IoT system, how the IoT system works

Storage os kubernetes clusters need persistent data

  • 1. Kubernetes Clusters Need Persistent Data
  • 2. © StorageOS, Inc. About Me: James Spurin • StorageOS Product Evangelist, formerly a founding StorageOS Advisory Board member • 20+ years of Engineering experience covering Storage, Automation, DevOps and Software Development • Previously worked at Nomura, Goldman Sachs, Dell EMC and many more - Connect with me on LinkedIn • Published Technical Author: Dive Into Ansible
  • 3. • How organisations are using Kubernetes • Problems + missed opportunities with ephemeral workloads • Use of StorageClasses for Kubernetes multi tenancy • How to simplify the transition of Legacy apps to Kubernetes • Features like Data Encryption • Features like Read-Write-Many volumes • GitOps design patterns with StorageClasses + Demo © StorageOS, Inc. Agenda
  • 4. • Self Managed Kubernetes (On-Prem / Cloud) • Rancher – Kubernetes as a Service (On-Prem / Cloud)| • OpenShift – Kubernetes with a PaaS (On-Prem / Cloud) © StorageOS, Inc. How is Kubernetes Deployed and Consumed Common Approaches for Hosting and Managing Kubernetes • Hosted Kubernetes (Amazon EKS, Microsoft AKS, Google GKE) • Developer Environments (Self Hosted / Minikube / Kind)
  • 5. © StorageOS, Inc. How are Organisations Using Kubernetes Kubernetes Market Adoption – Heavily utilised for Ephemeral Workloads • Very easy to deploy and use without storage • Application can sync/download content on init • Pod can be destroyed/recreated for site updates • Very easy to deploy and use without storage • Instances can access keys/values from other nodes on failure
  • 6. © StorageOS, Inc. Ephemeral First Problems When a Kubernetes environment does not factor for the use of persistent data, we solve for ephemeral environments, this results in - Legacy Environments running alongside Kubernetes Applications may be running in less than optimal ways • Natively supports persistent storage • Improves recovery time • Re-deploying the container is not the only answer Scaffolding to work around non-persistent storage … no really …
  • 7. © StorageOS, Inc. Ephemeral First Problems PersitentVolume: NodeAffinity has been used to restrict this workload so that it can only runs on k8snode1 This achieves “Persistent Storage” but sacrifices the benefits, of Kubernetes! What happens if k8snode1 fails? Example ”Workaround”
  • 8. © StorageOS, Inc. Treating Persistent Data like Networking Technologies A typical setup procedure or consideration when deploying a Kubernetes cluster is the Installation of a networking technology as a DaemonSet StorageOS installs as an Operator and runs as a DaemonSet
  • 9. © StorageOS, Inc. Unlocking the Full Potential of Kubernetes Adding an advanced dataplane like unlocks huge potential across the entire Kubernetes cluster + =
  • 10. StorageClasses • Development: Not concerned about the number of copies, data to be highly available across all nodes • Production: Highly available with 2 replicas © StorageOS, Inc. • Top Secret: Encryption Enabled and 2 replicas • Archived: Compression with 1 replica StorageClasses Promote Multi-Tenancy and Agility
  • 11. © StorageOS, Inc. Using Storage Classes and Persistent Volume Claims * PV, Persistent Volume automatically created as part of the claim!
  • 12. © StorageOS, Inc. Data Encryption at Rest Data Encryption enabled via a single label With the increased market use of Kubernetes as a cloud managed service and strict data compliance regulations that include the Payment Card Industry Standard (PCI DSS) and the Health Insurance Portability and Accountability Act (HIPPA), organisations are dependent on encrypted data as a requirement for Kubernetes workloads using persistent storage
  • 13. © StorageOS, Inc. Transition of Legacy Applications is Simplified Applications that rely on Persistent Data can just be run, as you’d expect them to run without scaffolding or legacy environments
  • 14. Pool • Allow a filesystem to be shared by multiple containers • Useful for legacy applications (e.g. filesystem as message bus) that rely on a shared filesystem • ReadWriteOnce semantics – 1 application per volume • Some applications require ReadWriteMany (RWX) semantics • Orchestrates a user space NFS layer to provide RWX volumes © StorageOS, Inc. Alternative Approaches for Solution Architects – RWX Volumes N1 N2 N3 N4 N5 • All pods, share same data • Updates to the main volume updates all • No restarts of Pods, needed • Additional benefit of replicas
  • 15. © StorageOS, Inc. Containers Can Run More Effectively Unlock intended functionality! Redis natively supports persistent data, improving recovery time Without persistent storage, Redis running in a Kubernetes environment will not make use of this functionality See – https://storageos.com/redis-with-kubernetes- persistent-storage
  • 16. GitOps Approach myapp1 (OnPrem): Highly Available with 2 replicas © StorageOS, Inc. myapp1 (Cloud): Highly Available with 2 replicas + Encryption StorageClass shares the same name (myapp1) but with different configurations
  • 18. Further Reading © StorageOS, Inc. StorageOS Platform Architecture Overview https://bit.ly/3r7cx6g StorageOS Documentation https://docs.storageos.com Supporting Civo’s Lightning-Fast Managed Kubernetes Development and Deployment https://bit.ly/3r4S1nD Speak to StorageOS Engineers on Slack https://slack.storageos.com Performance Benchmarking Cloud Native Storage Solutions https://bit.ly/3l8cTqQ