Skip to content

Commit 9249dbd

Browse files
authored
refactor: update sandbox periodSeconds in readinessProbe (#2785)
1 parent 608adcf commit 9249dbd

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

apiserver/paasng/paas_wl/bk_app/agent_sandbox/kres_slzs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,13 @@ def _construct_pod_spec(obj: "AgentSandbox") -> Dict:
7575
"periodSeconds": 1,
7676
"failureThreshold": 300,
7777
},
78-
# readinessProbe: startup 成功后接管,每 10s 探测一次,连续 2 次失败(~20s)标记为 Not Ready
78+
# readinessProbe: startup 成功后接管,每 2s 探测一次,连续 2 次失败(~20s)标记为 Not Ready
7979
"readinessProbe": {
8080
"tcpSocket": {
8181
"port": DAEMON_BIND_PORT,
8282
},
83-
# 接管后立即探测
8483
"initialDelaySeconds": 0,
85-
"periodSeconds": 10,
84+
"periodSeconds": 2,
8685
"failureThreshold": 2,
8786
},
8887
}

0 commit comments

Comments
 (0)