github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-with-pvc.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: application-with-pvc
     5  spec:
     6    components:
     7      - name: busybox-runner
     8        type: worker
     9        properties:
    10          image: busybox
    11          cmd:
    12            - sleep
    13            - '1000'
    14        traits:
    15          - type: pvc
    16            properties:
    17              claimName: "busybox-pvc"
    18              accessModes:
    19                - "ReadWriteOnce"
    20              volumeMode: "Block"
    21              resources:
    22                requests:
    23                  storage: "2Gi"
    24              volumesToMount:
    25                - name: "volume-with-pvc"
    26                  devicePath: "/tmp"