Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activeDeadlineSeconds is not work when build pod in pending status #1658

Open
zhoufenqin opened this issue Jun 21, 2024 · 0 comments
Open

activeDeadlineSeconds is not work when build pod in pending status #1658

zhoufenqin opened this issue Jun 21, 2024 · 0 comments

Comments

@zhoufenqin
Copy link

zhoufenqin commented Jun 21, 2024

I configure activeDeadlineSeconds:1800 in cnb image. when it tigger a build, there is a mount issue happen so the build pod is stay in Pending.
I wish the build can be set to Failed if the build pod can't work after 1800 seconds then I can try next build. But the pod keep stay in Pending for hours and block next builds.

The activeDeadlineSeconds may not realized in k8s pending pod, see here. So can the kpack-controller realize it? it can monitor the build create time and determine if make the build to ternimate status if the duration is too long

  ----     ------             ----                      ----                -------
  Warning  FailedScheduling   16m (x43 over 3h40m)      default-scheduler   0/5 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/5 nodes are available: 5 Preemption is not helpful for scheduling..
  Normal   NotTriggerScaleUp  3m57s (x1889 over 5h20m)  cluster-autoscaler  pod didn't trigger scale-up: 3 pod has unbound immediate PersistentVolumeClaims
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant