apiVersion: v1
kind: Pod
metadata:
  name: demo-local-volume-pod
spec:
  initContainers:
    - name: create-file
      image: busybox:1.28
      command: ['sh', '-c', 'echo creating dir; echo `date` INIT OK >> /tmp/init.log; sleep 2;']
      volumeMounts:
      - mountPath: /tmp
        name: local-pv
  containers:
  - image: neotkm/pod-healthcheck:v0.03
    name: demo-local-volume-pod
    volumeMounts:
    - mountPath: /test-pv
      name: local-pv
  - image: busybox
    name: demo-local-volume-pod-2
    command:
      - sleep
      - "3600"
    volumeMounts:
    - mountPath: /test-pv
      name: local-pv
  volumes:
    - name: local-pv
      persistentVolumeClaim:
        claimName: local-pvc
