github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/trait/init-container.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: init-container 15 properties: 16 name: init-busybox 17 image: busybox 18 cmd: ["echo", "hello"] 19 initMountPath: /data 20 appMountPath: /data-initialized 21 ```