k8s

Kubernetes Concept 7

k8s sharing

Posted by frankie on July 17, 2019

Volumes

Kubernetes offers storage abstraction options

Imgur

ConfigMap & emptyDir

Imgur

Imgur

Volume types

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

PersistentVolumes abstraction has two components

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

Imgur

AccessModes determine how the Volume will read or write

ReadWriteOnce mounts the volume as readwrite to a single node.

Imgur

ReadOnlyMany mounts a volume as read-only to many nodes.

Imgur

ReadWriteMany mounts volumes as readwrite to many nodes.

Imgur

GCP persistent disks do not support ReadWriteMany

NFS supports the ReadWriteMany access mode.

Imgur

Imgur

An alternative option is Dynamic Provisioning

Imgur

Imgur

Imgur