github.com/oam-dev/kubevela@v1.9.11/docs/examples/core-definitions/trait/resource.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: resource-app 5 spec: 6 components: 7 - name: express-server 8 type: webservice 9 properties: 10 image: crccheck/hello-world 11 ports: 12 - port: 8000 13 traits: 14 - type: resource 15 properties: 16 cpu: 2 17 memory: 2Gi 18 requests: 19 cpu: 2 20 memory: 2Gi 21 limits: 22 cpu: 4 23 memory: 4Gi