# Pod spec fragment. The two image references are placeholders.
# The carrier image contains sh, cp and /payload/runtime.
volumes:
  - name: runtime
    emptyDir: {}
initContainers:
  - name: copy-runtime
    image: example.invalid/runtime-carrier:r1
    command: ["sh", "-ec", "cp -R /payload/runtime/. /work/"]
    volumeMounts:
      - {name: runtime, mountPath: /work}
containers:
  - name: application
    image: example.invalid/service:r1
    volumeMounts:
      - {name: runtime, mountPath: /runtime}
# Set volume permissions for the image users and preserve required file modes.
