github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-with-lifecycle.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: application-with-lifecycle 5 spec: 6 components: 7 - name: busybox-runner 8 type: worker 9 properties: 10 image: busybox 11 cmd: 12 - sleep 13 - '1000' 14 traits: 15 - type: lifecycle 16 properties: 17 postStart: 18 exec: 19 command: 20 - echo 21 - 'hello world' 22 preStop: 23 httpGet: 24 host: "www.aliyun.com" 25 scheme: "HTTPS" 26 port: 443