-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Unexpected "Error creating: Unauthorized" #8972
Comments
I'm experiencing the same error. |
I'm getting similar installing Agones via Helm, in both the Render (subsequently deployed with kubectl with --server-side flag) and Deploy phases: (anonymized)
Log output (anonymised):
Running the Helm chart outside of skaffold results in working pods - I don't see them going into a failure state when watching in Kubectl, but they definitely go through that state in the event log:
|
Maybe this should be split into two issues (or, kept as one issue, but with two distinct parts) 1 - (More actionable today) Add to the logging around pod/deployment failure detection, especially for helm. @ericzzzzzzz - what do you think? If you want me to split it up, happy to do that. |
Hi @davidedmondsMPG, sorry for the late reply. The |
@aran similar to davidedmondsMPG's case, your k8s resource may rely on something that is created when installing the release, that's why you also need to use |
@ericzzzzzzz we did run with |
any follow up? |
I'm also suffering from this issue. Passing
I've done some testing and this issue appears in version The only notable clue is that this issue doesn't seem to show up right after creating the cluster. After letting the cluster run for a bit this issue seems to show up. For anyone with this issue, you can try downgrading to |
Hi, thank you all for the discussion! I'm gonna prioritize this! We'd like more info to have a better understanding of the issue, could you provide a minimum reproducible project for us to debug and identify the cause ? Thanks! |
@ericzzzzzzz A key sub-issue here is that it doesn't reliably reproduce and the logging doesn't indicate what happened to facilitate constructing a reproduction. Is it possible to increase logging at the 'debug' or 'trace' level around deployment status checks? By importing or copying the kubernetes deployment status data structures directly, e.g. these ones, and logging them in full at the 'debug' level, it should be possible to eliminate STATUSCHECK_UNKNOWN. Then with any luck by 2.6.4 it will be more obvious what is driving the underlying issue. |
This might be the cause: skaffold/pkg/skaffold/kubernetes/status/resource/deployment.go Lines 238 to 252 in 8cb32b3
It seems that skaffold Lists all events in a namespace, it should use |
Expected behavior
skaffold dev -p dev
reliably deploys a helm-based skaffold deploy to kubernetes running in Colima.Actual behavior
I’m seeing a
skaffold dev
fail with“Failed to create Pod for Deployment <…>: Error creating: Unauthorized”
However with
--keep-running-on-failures
and--tolerate-failures-until-deadline
, I am able to see withkubectl get deployment -A
that the deployment has in fact succeeded. Running with--verbosity='trace'
isn’t showing any other clues that look obvious.Information
Steps to reproduce the behavior
skaffold dev -p dev
in a folder with the above skaffold.yaml file.On another mac, with same skaffold, colima and kubernetes versions, the same issue does not occur.
Arguably there's a logging enhancement implicit in this as it is hard to diagnose what is occurring from the existing logs.
skaffold_debug2.txt
The text was updated successfully, but these errors were encountered: