apiVersion: v1
kind: Pod
metadata:
  name: share-pod
  labels:
    app: share-pod
spec:
  volumes:
    - name: host-volume
      hostPath:
        path: /home/docker/somePersistentDir
  containers:
    - image: nginx
      name: nginx
      ports:
      - containerPort: 80
      volumeMounts:
      - mountPath: /usr/share/nginx/html
        name: host-volume
    - image: debian
      name: debian
      volumeMounts:
      - mountPath: /host-vol
        name: host-volume
      command: ["/bin/sh", "-c", "echo somebody that i used to know > /host-vol/index.html; sleep 3600"]
