github.com/oam-dev/kubevela@v1.9.11/docs/examples/advanced-cue/app3.yaml (about)

     1  apiVersion: core.oam.dev/v1beta1
     2  kind: Application
     3  metadata:
     4    name: testapp
     5  spec:
     6    components:
     7      - name: express-server
     8        type: webservice
     9        properties:
    10          cmd:
    11            - node
    12            - server.js
    13          image: oamdev/testapp:v1
    14          port: 8080
    15        traits:
    16          - type: "init-container"
    17            properties:
    18              name:  "install-container"
    19              image: "busybox"
    20              command:
    21              - wget
    22              - "-O"
    23              - "/work-dir/index.html"
    24              - http://info.cern.ch
    25              mountName: "workdir"
    26              appMountPath:  "/usr/share/nginx/html"
    27              initMountPath: "/work-dir"