- Hands-On Microservices with Kubernetes
- Gigi Sayfan
- 76字
- 2021-06-24 13:46:34
Logging
There are several ways to implement central logging with Kubernetes:
- Have a logging agent that runs on every node
- Inject a logging sidecar container to every application pod
- Have your application send its logs directly to a central logging service
There are pros and cons to each approach. But, the main thing is that Kubernetes supports all approaches and makes container and pod logs available for consumption.
Refer to https://kubernetes.io/docs/concepts/cluster-administration/logging/#cluster-level-logging-architectures for an in-depth discussion.