hawtio / hawtio-kubernetes

hawtio plugin for working with kubernetes
Apache License 2.0
24 stars 14 forks source link

No logs shown with 2 container in pod #121

Closed yvespp closed 7 years ago

yvespp commented 7 years ago

If a pod has more then one container, the Pods view only shows one log icon and shows no logs if I click it. Testet with fabric8/fabric8-console:2.2.167 on vanilla kubernetes 1.2.3.

Request that the browser sends:

Request URL:wss://myhost.mycorp.test:8443/api/v1/namespaces/abc/pods/abc-mapper-2342901270-x3bpf/log?follow=true&tailLines=1000
Request Method:GET
Status Code:400 Bad Request

To view the logs with kubectl you have to add the container name if there is more than one container in the pod. I guess it's the same here.