Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
This repository was archived by the owner on May 17, 2024. It is now read-only.

Create/Attach pod in single command: Timed out waiting for condition #191

Open
@brokencode64

Description

@brokencode64

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions