github.com/oam-dev/kubevela@v1.9.11/vela-templates/definitions/usage-examples/application-with-startup-probe.yaml (about) 1 apiVersion: core.oam.dev/v1beta1 2 kind: Application 3 metadata: 4 name: application-with-startup-probe 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: sidecar 16 properties: 17 name: nginx 18 image: nginx 19 # This startup-probe is blocking the startup of the main container 20 # as the URL has a typo '.comm' vs '.com' 21 - type: startup-probe 22 properties: 23 containerName: "busybox-runner" 24 httpGet: 25 host: "www.guidewire.comm" 26 scheme: "HTTPS" 27 port: 443 28 periodSeconds: 4 29 failureThreshold: 4 30 # This startup probe targets the nginx sidecar 31 - type: startup-probe 32 properties: 33 containerName: nginx 34 httpGet: 35 host: "www.guidewire.com" 36 scheme: "HTTPS" 37 port: 443 38 periodSeconds: 5 39 failureThreshold: 5