Slide 1

Slide 1 text

Storing (g)it Working with Storage in a GitOps world GitOps Happy Hour 1 Christian Hernandez Cloud Platforms BU

Slide 2

Slide 2 text

A broad spectrum of static and dynamic storage endpoints OPENSHIFT CONTAINER PLATFORM | Persistent Storage NFS GlusterFS OpenStack Cinder Ceph RBD AWS EBS GCE Persistent Disk iSCSI Fiber Channel Azure Disk Azure File FlexVolume VMWare vSphere VMDK Container Storage Interface (CSI)** NetApp Trident* 2

Slide 3

Slide 3 text

PV Consumption OPENSHIFT CONTAINER PLATFORM | Persistent Storage Node POD CONTAINER Claim Z apiVersion: v1 kind: Pod metadata: name: mypod spec: containers: - name: myfrontend image: nginx volumeMounts: - mountPath: "/var/www/html" name: mypd volumes: - name: mypd persistentVolumeClaim: claimName: z PV Kubelet Storage /foo/bar 3

Slide 4

Slide 4 text

iSCSI PV iSCSI PV NFS PV NFS PV Static Storage Provisioning OPENSHIFT CONTAINER PLATFORM | Persistent Storage Admin PersistentVolumes NFS PV iSCSI PV ... Claim Z 2Gi RWX Bind User POD CONTAINER ... VolumeMount: Z Pod Definition Mount Define/Map 2Gi NFS 4

Slide 5

Slide 5 text

Dynamic Storage Provisioning OPENSHIFT CONTAINER PLATFORM | Persistent Storage Admin StorageClass Claim Z 2Gi RWX Good Bind User ... VolumeMount: Z Pod Definition Mount Fast NetApp Flash Block VMware VMDK Good NetApp SSD API Server NetApp SSD 2Gi NFS PV Create Map POD CONTAINER 5

Slide 6

Slide 6 text

Challenges in a GitOps world OPENSHIFT CONTAINER PLATFORM | Persistent Storage 6 Dynamic Storage provisioning ○ (By default) storage reclaim policy is set to “Delete” ○ Little control ○ Reclaiming storage after disaster is a manual process ■ It’s less work restoring from backup Manual Storage provisioning ○ Storage needs to be set up for each application ○ Keeping track of what is what ○ More control means more steps Other things to consider ○ File permissions ○ Restoring from backups

Slide 7

Slide 7 text

Challenges in a GitOps world OPENSHIFT CONTAINER PLATFORM | Persistent Storage 7 Dynamic Storage provisioning ○ (By default) storage reclaim policy is set to “Delete” ○ Little control ○ Reclaiming storage after disaster is a manual process ■ It’s less work restoring from backup Manual Storage provisioning ○ Storage needs to be set up for each application ○ Keeping track of what is what ○ More control means more steps Other things to consider ○ File permissions ○ Restoring from backups There’s no magic bullet

Slide 8

Slide 8 text

Let’s Explore! Hacking away at it until it works. GitOps Happy Hour 8 Keyboard time!