kubernetes dealing with storage and persistence

13
Dealing with Storage & Persistence Janakiram MSV Analyst | Advisor | Architect Janakiram & Associates Google Developer Expert

Upload: janakiram-msv

Post on 07-Feb-2017

135 views

Category:

Technology


0 download

TRANSCRIPT

Dealing with Storage & PersistenceJanakiram MSVAnalyst | Advisor | ArchitectJanakiram & AssociatesGoogle Developer Expert

Announcing The Kubernetes Webinar Series

● Monthly webinar focused on helping you get started with Kubernetes● Delivered by the experts from the container ecosystem● Each webinar introduces a concept to accelerate your learning● No specific prerequisites

○ Basic understanding of Docker will help

● All attendees will get $100 Google Cloud Platform Credits● The recording of this webinar will be available at Kube.live

Objectives

● Adding persistence to Pods● Dealing with block storage in the cloud● Understanding Persistent Volumes and Claims● Demos

Persistence in Pods

● Pods are ephemeral and stateless● Volumes bring persistence to Pods● Kubernetes volumes are similar to Docker volumes, but managed

differently● All containers in a Pod can access the volume● Volumes are associated with the lifecycle of Pod● Directories in the host are exposed as volumes● Volumes may be based on a variety of storage backends

Pods and Volumes

Kubernetes Volume Types

● Host-based○ EmptyDir○ HostPath

● Block Storage○ Amazon EBS○ GCE Persistent Disk○ Azure Disk○ vSphere Volume○ ...

● Distributed File System○ NFS○ Ceph○ Gluster○ Amazon EFS○ Azure File System○ ...

● Other○ Flocker○ iScsi○ Git Repo○ Quobyte○ ...

Pods and Volumes

DemoHost-based Volumes

Block Storage-based Volumes

Understanding Persistent Volumes & Claims

● PersistentVolume (PV)○ Networked storage in the cluster pre-provisioned by an administrator.

● PersistentVolumeClaim (PVC)○ Storage resource requested by a user.

● StorageClass○ Types of supported storage profiles offered by administrators

Storage Provisioning Workflow

Lifecycle of a Persistent Volume

● Provisioning● Binding● Using● Releasing● Reclaiming

DemoProvisioning and Claiming NFS-based

Volumes

Upcoming WebinarConfiguring & Deploying StatefulSets9AM PST, Tuesday, Feb. 14th

StatefulSets bring the flexibility and availability of ReplicaSets to stateful workloads such as NoSQL databases and RDBMS. In this webinar, we will configure a highly available cluster of MySQL in Kubernetes based on the concept of StatefulSet. We will also cover the concepts of node affinity and horizontal pod autoscaling to achieve scalability, reliability, and availability of a web-scale deployment.

Register at kube.live for the upcoming webinars

Thank You!Send your Feedback / Questions / Comments [email protected]