Commit 3e48e43c authored by 黎博's avatar 黎博

update

parent f742cf3c
...@@ -668,15 +668,15 @@ public class K8sService { ...@@ -668,15 +668,15 @@ public class K8sService {
livenessProbe.setExec(execAction); livenessProbe.setExec(execAction);
livenessProbe.setInitialDelaySeconds(200); livenessProbe.setInitialDelaySeconds(200);
livenessProbe.setSuccessThreshold(1); livenessProbe.setSuccessThreshold(1);
livenessProbe.setFailureThreshold(5); livenessProbe.setFailureThreshold(40);
container.setLivenessProbe(livenessProbe); container.setLivenessProbe(livenessProbe);
//readinessProbe //readinessProbe
Probe readinessProbe = new Probe(); Probe readinessProbe = new Probe();
readinessProbe.setExec(execAction); readinessProbe.setExec(execAction);
readinessProbe.setInitialDelaySeconds(30); readinessProbe.setInitialDelaySeconds(200);
readinessProbe.setTimeoutSeconds(2); readinessProbe.setTimeoutSeconds(2);
readinessProbe.setPeriodSeconds(5); readinessProbe.setPeriodSeconds(40);
container.setReadinessProbe(readinessProbe); container.setReadinessProbe(readinessProbe);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment