shared-memory.yaml
---
apiVersion: v1
id: hello-openshift
kind: Pod
metadata:
  name: hello-openshift
  labels:
    name: hello-openshift
spec:
  volumes:                          (1)
    - name: dshm
      emptyDir:
        medium: Memory
  containers:
    - image: kubernetes/pause
      name: hello-container1
      ports:
        - containerPort: 8080
          hostPort: 6061
      volumeMounts:                 (2)
        - mountPath: /dev/shm
          name: dshm
    - image: kubernetes/pause
      name: hello-container2
      ports:
        - containerPort: 8081
          hostPort: 6062
      volumeMounts:                 (3)
        - mountPath: /dev/shm
          name: dshm
| 1 | specifies the tmpfs volume dshm. | 
| 2 | enables POSIX shared memory for hello-container1 via dshm. | 
| 3 | enables POSIX shared memory for hello-container2 via dshm. |