LivenessProbeRequirements クラス

Webservice のデプロイの liveness probe 時間の要件を定義します。

LivenessProbeRequirements 構成値は、Webservice をデプロイまたは更新するときに指定します。 たとえば、AksWebservice クラスの deploy_configuration または update メソッド、または AksEndpoint クラスの create_versiondeploy_configuration、または update_version メソッドを使用します。

コンテナー リソースの要件を初期化します。

継承
builtins.object
LivenessProbeRequirements

コンストラクター

LivenessProbeRequirements(period_seconds, initial_delay_seconds, timeout_seconds, success_threshold, failure_threshold)

パラメーター

period_seconds
int
必須

liveness probe を実行する頻度 (秒単位)。 既定値は 10 秒です。 最大値は 1 です。

initial_delay_seconds
int
必須

コンテナーの起動後、liveness probe が開始するまでの秒数。

timeout_seconds
int
必須

liveness probe がタイムアウトするまでの秒数。既定値は 1 秒です。 最大値は 1 です。

failure_threshold
int
必須

Pod が起動し、liveness probe が失敗した場合、Kubernetes は failureThreshold 回試してから、あきらめます。 既定値は 3 です。 最大値は 1 です。

success_threshold
int
必須

失敗した後、liveness probe が成功と見なされるための最小連続成功数。 既定値は 1 です。 最大値は 1 です。

period_seconds
int
必須

liveness probe を実行する頻度 (秒単位)。 既定値は 10 秒です。 最大値は 1 です。

initial_delay_seconds
int
必須

コンテナーの起動後、liveness probe が開始するまでの秒数。

timeout_seconds
int
必須

liveness probe がタイムアウトするまでの秒数。既定値は 1 秒です。 最大値は 1 です。

failure_threshold
int
必須

Pod が起動し、liveness probe が失敗した場合、Kubernetes は failureThreshold 回試してから、あきらめます。 既定値は 3 です。 最大値は 1 です。

success_threshold
int
必須

失敗した後、liveness probe が成功と見なされるための最小連続成功数。 既定値は 1 です。 最大値は 1 です。

変数

period_seconds
int

liveness probe を実行する頻度 (秒単位)。 既定値は 10 秒です。 最大値は 1 です。

initial_delay_seconds
int

コンテナーの起動後、liveness probe が開始するまでの秒数。

timeout_seconds
int

liveness probe がタイムアウトするまでの秒数。既定値は 1 秒です。 最大値は 1 です。

failure_threshold
int

Pod が起動し、liveness probe が失敗した場合、Kubernetes は failureThreshold 回試してから、あきらめます。 既定値は 3 です。 最大値は 1 です。

success_threshold
int

失敗した後、liveness probe が成功と見なされるための最小連続成功数。 既定値は 1 です。 最大値は 1 です。

メソッド

deserialize

JSON オブジェクトを LivenessProbeRequirements オブジェクトに変換します。

serialize

この LivenessProbeRequirements オブジェクトを、JSON でシリアル化された辞書に変換します。

deserialize

JSON オブジェクトを LivenessProbeRequirements オブジェクトに変換します。

static deserialize(payload_obj)

パラメーター

payload_obj
dict
必須

LivenessProbeRequirements オブジェクトに変換する JSON オブジェクト。

戻り値

指定された JSON オブジェクトの LivenessProbeRequirements 表現。

の戻り値の型 :

serialize

この LivenessProbeRequirements オブジェクトを、JSON でシリアル化された辞書に変換します。

serialize()

戻り値

この LivenessProbeRequirements オブジェクトの JSON 表現。

の戻り値の型 :