feat: 失敗セッションの調査性を改善(終了Pod保持 + ログAPI + UI)(v2.1.263-d)
セッション Pod がブート失敗で Failed になると reaper が即削除し kubectl logs で 死因を追えなかった。「開く」で 502 になるだけで原因不明だった。 - session.reaper.terminatedRetentionSeconds(既定 900): 終了済み Pod を finishedAt からこの秒数は回収しない。manager 回収ループと reaper CronJob 両方が尊重 - GET /api/sessions/<id>/log: セッション Pod のログを text で返す(pods/log get のみ、追加権限なし) - UI: 「ログ」ボタン、状態の色分け、Failed 行に reason/exitCode/message 併記、 Running 以外は「開く」非表示 - session-entrypoint.sh: URL スキームと identity 型の不一致を警告。 git clone を --progress ... 2>&1 にして git/ssh の出力を Pod ログへ - helm lint / template 検証済み
This commit is contained in:
@@ -268,6 +268,10 @@ session:
|
||||
reaper:
|
||||
# manager 内アイドル回収ループの実行間隔
|
||||
intervalSeconds: 60
|
||||
# 終了済み(Succeeded / Failed)セッション Pod を回収せず残す秒数。
|
||||
# 死因を UI の「ログ」ボタンや kubectl logs で確認できるよう猶予を持たせる。
|
||||
# 0 にすると即回収(旧挙動)。
|
||||
terminatedRetentionSeconds: 900
|
||||
# 予備の孤児掃除 CronJob(manager 障害時の保険)
|
||||
cronjob:
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user