Skip to content

Commit

Permalink
TerminationGracePeriodSeconds 시간이 너무 길어 pod가 오랜기간 terminate 되지 않는 문제가…
Browse files Browse the repository at this point in the history
… 있어 임시로 3시간으로 변경.
  • Loading branch information
ian-lss committed Mar 28, 2024
1 parent bbc685e commit 9c43680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/controllers/deployment_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,9 @@ func updateSomeFieldsOnlyWhenRolling(template *corev1.PodTemplateSpec, updater d
template.Spec.TerminationGracePeriodSeconds = int64Ptr(int64(oneMonthSeconds))
}

const oneMonthSeconds = 24 * 30 * int(time.Hour/time.Second)
// ian.lee custom
// const oneMonthSeconds = 24 * 30 * int(time.Hour/time.Second)
const oneMonthSeconds = 3 * int(time.Hour/time.Second)

func updateSidecars(template *corev1.PodTemplateSpec, updater deploymentUpdater) {
sidecars := updater.GetSideCars()
Expand Down

0 comments on commit 9c43680

Please sign in to comment.