github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/trait/command.eg.md (about)

     1  ```yaml
     2  apiVersion: core.oam.dev/v1beta1
     3  kind: Application
     4  metadata:
     5    name: busybox
     6  spec:
     7    components:
     8      - name: busybox
     9        type: webservice
    10        properties:
    11          image: busybox
    12          cmd: ["sleep", "86400"]
    13        traits:
    14          - type: sidecar
    15            properties:
    16              name: sidecar-nginx
    17              image: nginx
    18          - type: command
    19            properties:
    20              # you can use command to control multiple containers by filling `containers`
    21              # NOTE: in containers, you must set the container name for each container
    22              containers:
    23                - containerName: busybox
    24                  command: ["sleep", "8640000"]
    25                - containerName: sidecar-nginx
    26                  args: ["-q"]
    27  ```