Package net.stickycode.kuuty.model.v18
Class IoK8sApiCoreV1Probe
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiCoreV1Probe
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiCoreV1Probe extends Object
Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_EXECstatic StringJSON_PROPERTY_FAILURE_THRESHOLDstatic StringJSON_PROPERTY_HTTP_GETstatic StringJSON_PROPERTY_INITIAL_DELAY_SECONDSstatic StringJSON_PROPERTY_PERIOD_SECONDSstatic StringJSON_PROPERTY_SUCCESS_THRESHOLDstatic StringJSON_PROPERTY_TCP_SOCKETstatic StringJSON_PROPERTY_TIMEOUT_SECONDS
-
Constructor Summary
Constructors Constructor Description IoK8sApiCoreV1Probe()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_EXEC
public static final String JSON_PROPERTY_EXEC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FAILURE_THRESHOLD
public static final String JSON_PROPERTY_FAILURE_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_HTTP_GET
public static final String JSON_PROPERTY_HTTP_GET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_INITIAL_DELAY_SECONDS
public static final String JSON_PROPERTY_INITIAL_DELAY_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PERIOD_SECONDS
public static final String JSON_PROPERTY_PERIOD_SECONDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUCCESS_THRESHOLD
public static final String JSON_PROPERTY_SUCCESS_THRESHOLD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TCP_SOCKET
public static final String JSON_PROPERTY_TCP_SOCKET
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TIMEOUT_SECONDS
public static final String JSON_PROPERTY_TIMEOUT_SECONDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
exec
public IoK8sApiCoreV1Probe exec(IoK8sApiCoreV1ExecAction exec)
-
getExec
@Nullable public IoK8sApiCoreV1ExecAction getExec()
Get exec- Returns:
- exec
-
setExec
public void setExec(IoK8sApiCoreV1ExecAction exec)
-
failureThreshold
public IoK8sApiCoreV1Probe failureThreshold(Integer failureThreshold)
-
getFailureThreshold
@Nullable public Integer getFailureThreshold()
Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.- Returns:
- failureThreshold
-
setFailureThreshold
public void setFailureThreshold(Integer failureThreshold)
-
httpGet
public IoK8sApiCoreV1Probe httpGet(IoK8sApiCoreV1HTTPGetAction httpGet)
-
getHttpGet
@Nullable public IoK8sApiCoreV1HTTPGetAction getHttpGet()
Get httpGet- Returns:
- httpGet
-
setHttpGet
public void setHttpGet(IoK8sApiCoreV1HTTPGetAction httpGet)
-
initialDelaySeconds
public IoK8sApiCoreV1Probe initialDelaySeconds(Integer initialDelaySeconds)
-
getInitialDelaySeconds
@Nullable public Integer getInitialDelaySeconds()
Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes- Returns:
- initialDelaySeconds
-
setInitialDelaySeconds
public void setInitialDelaySeconds(Integer initialDelaySeconds)
-
periodSeconds
public IoK8sApiCoreV1Probe periodSeconds(Integer periodSeconds)
-
getPeriodSeconds
@Nullable public Integer getPeriodSeconds()
How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.- Returns:
- periodSeconds
-
setPeriodSeconds
public void setPeriodSeconds(Integer periodSeconds)
-
successThreshold
public IoK8sApiCoreV1Probe successThreshold(Integer successThreshold)
-
getSuccessThreshold
@Nullable public Integer getSuccessThreshold()
Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1.- Returns:
- successThreshold
-
setSuccessThreshold
public void setSuccessThreshold(Integer successThreshold)
-
tcpSocket
public IoK8sApiCoreV1Probe tcpSocket(IoK8sApiCoreV1TCPSocketAction tcpSocket)
-
getTcpSocket
@Nullable public IoK8sApiCoreV1TCPSocketAction getTcpSocket()
Get tcpSocket- Returns:
- tcpSocket
-
setTcpSocket
public void setTcpSocket(IoK8sApiCoreV1TCPSocketAction tcpSocket)
-
timeoutSeconds
public IoK8sApiCoreV1Probe timeoutSeconds(Integer timeoutSeconds)
-
getTimeoutSeconds
@Nullable public Integer getTimeoutSeconds()
Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes- Returns:
- timeoutSeconds
-
setTimeoutSeconds
public void setTimeoutSeconds(Integer timeoutSeconds)
-
-