github.com/oam-dev/kubevela@v1.9.11/docs/examples/traits/container-image/single-container.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: busybox 5 spec: 6 components: 7 - name: busybox 8 type: webservice 9 properties: 10 image: busybox 11 cmd: ["sleep", "86400"] 12 traits: 13 - type: sidecar 14 properties: 15 name: sidecar-nginx 16 image: nginx 17 - type: container-image 18 properties: 19 # by default, the following image will be applied to the main container -> busybox in this case 20 image: busybox-1.34.0 21 22 # if you want to set the imagePullPolicy as well, specify it 23 # imagePullPolicy: IfNotPresent 24 25 # if you want to patch the sidecar container, specify the container name explicitly 26 # containerName: sidecar-nginx