coder / coder-logstream-kube

Stream Kubernetes Pod events to the Coder startup logs
GNU Affero General Public License v3.0
13 stars 4 forks source link

Stream ReplicaSet events (e.g. Kubernetes quota breached) #3

Closed bpmct closed 1 year ago

bpmct commented 1 year ago

When I exceed a Kubernetes quota, the error is on the ReplicaSet, not the deployment or pod:

  Warning  FailedCreate  46s (x6 over 2m5s)  replicaset-controller  (combined from similar events): Error creating: pods "coder-benzo-my-workspace-6df987574-ffvcc" is forbidden: exceeded quota: my-quota, requested: limits.cpu=6,limits.memory=4Gi,requests.memory=512Mi, used: limits.cpu=8,limits.memory=8Gi,requests.memory=1792Mi, limited: limits.cpu=2,limits.memory=2Gi,requests.memory=2Gi

In the Coder UI, the workspace seems like it is hanging forever. No events are streamed

kylecarbs commented 1 year ago

I'll add support for this!

kylecarbs commented 1 year ago

![Uploading image.png…]()