summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErin A Boyd <eboyd@redhat.com>2017-10-31 13:43:36 -0600
committerErin A Boyd <eboyd@redhat.com>2017-11-09 09:30:12 -0700
commit03f5a04785c97c873c35e1656b0d03019679a487 (patch)
tree91811c14db6664eeaa27ef8fdcb90b349efe6205
parent8903c1c64231c6532eb51e21ea8cf2433ebae93d (diff)
Update RawBock proposal with read-only use case
-rw-r--r--contributors/design-proposals/storage/raw-block-pv.md36
1 files changed, 35 insertions, 1 deletions
diff --git a/contributors/design-proposals/storage/raw-block-pv.md b/contributors/design-proposals/storage/raw-block-pv.md
index d4132c78..aaaa4cf4 100644
--- a/contributors/design-proposals/storage/raw-block-pv.md
+++ b/contributors/design-proposals/storage/raw-block-pv.md
@@ -528,6 +528,40 @@ spec:
name: my-nginx-data
readOnly: false
```
+## UC9:
+
+DESCRIPTION:
+* A user wishes to read data from a read-only raw block device, an example might be a database for analytics processing.
+
+ADMIN:
+* Admin creates a 1 block devices and with the intention consumption of read-only.
+
+USER:
+* User creates pod and specifies 'readOnly' as a parameter in the persistent volume claim to indicate they would
+like to be bound to a PV with this setting enabled.
+
+```
+apiVersion: v1
+kind: Pod
+metadata:
+ name: nginx-pod-block-001
+spec:
+ containers:
+ - name: nginx-container
+ image: nginx:latest
+ ports:
+ - containerPort: 80
+ volumeDevices:
+ - name: data
+ devicePath: /dev/xvda
+ volumes:
+ - name: data
+ persistentVolumeClaim:
+ claimName: block-pvc001
+ readOnly: true #flag indicating read-only for container runtime
+```
+*** Note: the readOnly field already exists in the PersistentVolumeClaimVolumeSource above and will dictate the values set by the container runtime options ***
+
# Container Runtime considerations
It is important the values that are passed to the container runtimes are valid and support the current implementation of these various runtimes. Listed below are a table of various runtime and the mapping of their values to what is passed from the kubelet.
@@ -734,4 +768,4 @@ Feature: Discovery of block devices
Milestone 3: Plugin changes with dynamic provisioning support (GCE, AWS & GlusterFS)
- Milestone 4: Flex volume update \ No newline at end of file
+ Milestone 4: Flex volume update