-
Notifications
You must be signed in to change notification settings - Fork 228
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
Debug image and cache dump script #1541
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/assign @tenzen-y |
624851a
to
f89c487
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally lgtm.
hack/debugpod/Dockerfile
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need this image? Can we use the debian:stable
image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alculquicondor ping :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we don't set the user, the ephemeral pod creation fails because of the tight Pod security context (can't run as root).
Ideally, kubectl debug
should allow to set a user id, but it doesn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we just need a slim image to be able to send kill
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally, kubectl debug should allow to set a user id, but it doesn't.
Oh, I didn't know that. Thank you for clarifying.
hack/dump_cache.sh
Outdated
NAMESPACE=${NAMESPACE:-kueue-system} | ||
DEBUG_IMAGE=${DEBUG_IMAGE:-gcr.io/k8s-staging-kueue/debug:main} | ||
|
||
leader=$(kubectl get lease -n ${NAMESPACE} -o jsonpath='{.items[0].spec.holderIdentity}' | cut -d '_' -f 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we obtain the leader name from c1f6bfd2.kueue.x-k8s.io
? If we deploy the manager for custom jobs separate from the kueue-manager, this script probably doesn't work well.
resourceName: c1f6bfd2.kueue.x-k8s.io |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Change-Id: I7e0bdb0acbeb04a94cea8a574abd340aed81de0b
f89c487
to
94c5fbe
Compare
/retest Opened flaky report #1543 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
LGTM label has been added. Git tree hash: 0fe8f925a8f5b7d67b604d5309135a63d47e9b6b
|
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fix #1437
Special notes for your reviewer:
Does this PR introduce a user-facing change?