上QQ阅读APP看书,第一时间看更新
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.