github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/workflowstep/apply-object.eg.md (about) 1 ```yaml 2 apiVersion: core.oam.dev/v1beta1 3 kind: Application 4 metadata: 5 name: server-with-pvc 6 namespace: default 7 spec: 8 components: 9 - name: express-server 10 type: webservice 11 properties: 12 image: oamdev/hello-world 13 port: 8000 14 volumes: 15 - name: "my-pvc" 16 type: "pvc" 17 mountPath: "/test" 18 claimName: "myclaim" 19 20 workflow: 21 steps: 22 - name: apply-pvc 23 type: apply-object 24 properties: 25 # Kubernetes native resources fields 26 value: 27 apiVersion: v1 28 kind: PersistentVolumeClaim 29 metadata: 30 name: myclaim 31 namespace: default 32 spec: 33 accessModes: 34 - ReadWriteOnce 35 resources: 36 requests: 37 storage: 8Gi 38 storageClassName: standard 39 # the cluster you want to apply the resource to, default is the current cluster 40 cluster: <your cluster name> 41 - name: apply-server 42 type: apply-component 43 properties: 44 component: express-serve 45 ```