From 2b2649241b247894173730440e24e9dcf27ea18f Mon Sep 17 00:00:00 2001 From: Sabbir Ahmed Shameem <145862004+SAShameem@users.noreply.github.com> Date: Mon, 6 May 2024 22:52:05 +0600 Subject: [PATCH] Create rro.yaml --- content/bn/examples/service/storage/rro.yaml | 28 ++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 content/bn/examples/service/storage/rro.yaml diff --git a/content/bn/examples/service/storage/rro.yaml b/content/bn/examples/service/storage/rro.yaml new file mode 100644 index 0000000000..1ffc6b0389 --- /dev/null +++ b/content/bn/examples/service/storage/rro.yaml @@ -0,0 +1,28 @@ +apiVersion: v1 +kind: Pod +metadata: + name: rro +spec: + volumes: + - name: mnt + hostPath: + # tmpfs is mounted on /mnt/tmpfs + path: /mnt + containers: + - name: busybox + image: busybox + args: ["sleep", "infinity"] + volumeMounts: + # /mnt-rro/tmpfs is not writable + - name: mnt + mountPath: /mnt-rro + readOnly: true + mountPropagation: None + recursiveReadOnly: Enabled + # /mnt-ro/tmpfs is writable + - name: mnt + mountPath: /mnt-ro + readOnly: true + # /mnt-rw/tmpfs is writable + - name: mnt + mountPath: /mnt-rw