github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/trait/container-image.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: container-image
    19            properties:
    20              # you can use container-image 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                  image: busybox-1.34.0
    25                  imagePullPolicy: IfNotPresent
    26                - containerName: sidecar-nginx
    27                  image: nginx-1.20
    28  ```