github.com/oam-dev/kubevela@v1.9.11/docs/examples/application/application-sample.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: application-sample
     5  spec:
     6    components:
     7      - name: myweb
     8        type: worker
     9        properties:
    10          image: "busybox"
    11          cmd:
    12          - sleep
    13          - "1000"
    14        traits:
    15          - type: scaler
    16            properties:
    17              replicas: 10
    18          - type: sidecar
    19            properties:
    20              name: "sidecar-test"
    21              image: "nginx"
    22          - type: kservice
    23            properties:
    24              http:
    25                server: 80