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

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: website
     5  spec:
     6    components:
     7      - name: busy
     8        type: webservice
     9        properties:
    10          image: busybox
    11          cmd:
    12            - sleep
    13            - '1000'
    14          cpu: "0.2"
    15        traits:
    16          - type: resource
    17            properties:
    18              requests:
    19                cpu: "1.5"
    20                memory: "300Mi"
    21              limits:
    22                cpu: 2
    23                memory: "500Mi"