You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 17, 2024. It is now read-only.
I am running into a strange issu where if I try to create a pod and attach to it in a single command I get an error, but I can attach to the container manually just fine.
This command: kubectl run debug-pod --image=registry/debug --restart=Never --namespace=default --image-pull-policy=Always -i --tty --attach --rm
Results in:
E0322 15:06:02.226007 158207 reflector.go:138] k8s.io/client-go/tools/watch/informerwatcher.go:146: Failed to watch *v1.Pod: Get "https://kube-oidc-proxy.[doamin]/api/v1/namespaces/default/pods?allowWatchBookmarks=true&fieldSelector=metadata.name%3Ddebug-pod&resourceVersion=308783598&timeout=9m32s&timeoutSeconds=572&watch=true": stream error: stream ID 5; INTERNAL_ERROR
pod "debug-pod" deleted
error: timed out waiting for the condition
However I can do something like this it works just fine: kubectl exec -it [pod-name] sh
Not seeing any errors that seem related in kube-oidc-proxy, but I am sometimes getting these messages:
2021-03-22 14:13:33.937677 I | httputil: ReverseProxy read error during body copy: unexpected EOF
E0322 14:13:35.414634 1 handlers.go:208] unknown error ([ip]:24968): dial tcp [ip]:443: connect: connection refused
The text was updated successfully, but these errors were encountered:
For me, I got the message after kubectl run was running for 1 minute. This is because I was pulling a very large image, which took multiple minutes. I used --pod-running-timeout 7m so that kubectl waits for longer, and it worked for me. You can check kubectl describe pod <pod-name> to see how long it took from when the pod was scheduled to when the container started to figure out the timeout value.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am running into a strange issu where if I try to create a pod and attach to it in a single command I get an error, but I can attach to the container manually just fine.
This command:
kubectl run debug-pod --image=registry/debug --restart=Never --namespace=default --image-pull-policy=Always -i --tty --attach --rm
Results in:
However I can do something like this it works just fine:
kubectl exec -it [pod-name] sh
Not seeing any errors that seem related in kube-oidc-proxy, but I am sometimes getting these messages:
The text was updated successfully, but these errors were encountered: