Startup-probe
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| containerName | string | No |
| Specify the name of the target container, if not set, use the component name |
| exec | object | No | Instructions for assessing container startup status by executing a command. Either this attribute or the httpGet attribute or the grpc attribute or the tcpSocket attribute MUST be specified. This attribute is mutually exclusive with the httpGet attribute and the tcpSocket attribute and the gRPC attribute. | |
| failureThreshold | integer | No |
| Minimum consecutive failures for the probe to be considered failed after having succeeded. Minimum value is 1. |
| grpc | object | No | Instructions for assessing container startup status by probing a gRPC service. Either this attribute or the exec attribute or the grpc attribute or the httpGet attribute MUST be specified. This attribute is mutually exclusive with the exec attribute and the httpGet attribute and the tcpSocket attribute. | |
| httpGet | object | No | Instructions for assessing container startup status by executing an HTTP GET request. Either this attribute or the exec attribute or the grpc attribute or the tcpSocket attribute MUST be specified. This attribute is mutually exclusive with the exec attribute and the tcpSocket attribute and the gRPC attribute. | |
| initialDelaySeconds | integer | No |
| Number of seconds after the container has started before liveness probes are initiated. Minimum value is 0. |
| periodSeconds | integer | No |
| How often, in seconds, to execute the probe. Minimum value is 1. |
| probes | array | No | Specify the startup probe for multiple containers | |
| successThreshold | integer | No |
| Minimum consecutive successes for the probe to be considered successful after having failed. Minimum value is 1. |
| tcpSocket | object | No | Instructions for assessing container startup status by probing a TCP socket. Either this attribute or the exec attribute or the tcpSocket attribute or the httpGet attribute MUST be specified. This attribute is mutually exclusive with the exec attribute and the httpGet attribute and the gRPC attribute. | |
| terminationGracePeriodSeconds | integer | No | Optional duration in seconds the pod needs to terminate gracefully upon probe failure. Set this value longer than the expected cleanup time for your process. | |
| timeoutSeconds | integer | No |
| Number of seconds after which the probe times out. Minimum value is 1. |
Template
The following tabs display the definition's Cue template and the rendered YAML. The rendered YAML is the output of the Cue template when the definition is applied to a cluster.