

apiVersion: v1
kind: Pod
metadata:
  name: q5
  labels:
    app: myapp
spec:
  containers:
  - name: myapp-container
    image: busybox
    command: ['sh', '-c', 'cd /image && sha512sum 274006.2.jpg && sleep 111']
    volumeMounts:
    - name: image
      mountPath: "/image"
  initContainers:
  - name: init-myservice 
    image: busybox
    command: ['sh', '-c', 'cd /image && wget http://p.imgci.com/db/PICTURES/CMS/274000/274006.2.jpg']
    volumeMounts:
    - name: image
      mountPath: "/image"
  volumes:
  - name: image
    emptyDir: {}


