github.com/oam-dev/kubevela@v1.9.11/references/docgen/def-doc/trait/startup-probe.eg.md (about) 1 ```yaml 2 apiVersion: core.oam.dev/v1beta1 3 kind: Application 4 metadata: 5 name: application-with-startup-probe 6 spec: 7 components: 8 - name: busybox-runner 9 type: worker 10 properties: 11 image: busybox 12 cmd: 13 - sleep 14 - '1000' 15 traits: 16 - type: sidecar 17 properties: 18 name: nginx 19 image: nginx 20 # This startup-probe is blocking the startup of the main container 21 # as the URL has a typo '.comm' vs '.com' 22 - type: startup-probe 23 properties: 24 containerName: "busybox-runner" 25 httpGet: 26 host: "www.guidewire.comm" 27 scheme: "HTTPS" 28 port: 443 29 periodSeconds: 4 30 failureThreshold: 4 31 # This startup probe targets the nginx sidecar 32 - type: startup-probe 33 properties: 34 containerName: nginx 35 httpGet: 36 host: "www.guidewire.com" 37 scheme: "HTTPS" 38 port: 443 39 periodSeconds: 5 40 failureThreshold: 5 41 ```