-
Notifications
You must be signed in to change notification settings - Fork 285
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
Does cri-dockerd support journald logging ?? #61
Comments
used the default cri-docker.service file shipped in the RPM |
If docker is configured with journald logging, it completely bypasses the normal CRI mechanisms. The best practice way of managing this is to use something like In particular, logging to journald localizes logs for any given container/pod to the system they're running on, which is orthogonal to k8s logging (accessible from anywhere). The only reasonable mechanism to have this work would be to have I'm happy to help you find an alternative logging structure which can give something like the best of both worlds. |
Hm, kubernetes’ original Dockershim worked with journald logging though—at least as of 1.23.x. Did they deprecate more than just the CRI-fication of Docker in 1.24? |
|
Sorry, I didn’t mean cri-dockerd’s logs, I mean the Pod/Container logs. I meant that kubelet <=1.23 with a Docker Runtime with the Logger Driver set to journald was able to somehow provide container logs upon I absolutely understand from your earlier comment that containers logging to journald isn’t conforming to CRI and that there’s several ways to setup logging the CRI way. Docker itself isn’t CRI conformant either, and so shouldn't be used as the underlying Container Runtime, and yet here we are and you guys made an adapter (which I'm really glad exists :)). So I was just wondering what part about the now-abandoned Dockershim or Docker-compatibility in the kubernetes/kubelet Code was responsible for |
The now-abandoned Dockershim is this codebase. Upstream k8s was nice enough to extract it and hand it over, and it saw some refactoring to make it more sense as a standalone codebase, but nothing else was removed. I haven't walked back whatever else happened in kubectl/etc, but this is dockershim in 99% of ways. AFAIK (and judging from the message), |
Wanted to leverage
cri-dockerd
as CRI for k8s.We tested the shim code and noticed kubectl logs doesnt work anymore when docker was configured with
journald
as logging driver.Is there an option I need to enable to make cri-dockerd as proxy and leverage the functionality of docker as is??
Error logs:
docker info
The text was updated successfully, but these errors were encountered: