apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: application-with-pvc
spec:
  components:
    - name: busybox-runner
      type: worker
      properties:
        image: busybox
        cmd:
          - sleep
          - '1000'
      traits:
        - type: pvc
          properties:
            claimName: "busybox-pvc"
            accessModes:
              - "ReadWriteOnce"
            volumeMode: "Block"
            resources:
              requests:
                storage: "2Gi"
            volumesToMount:
              - name: "volume-with-pvc"
                devicePath: "/tmp"
