Kubernetes itself provides simple tools for browsing Pod container logs. Generally, you will have to implement a good cluster-level logging solution—for example, using the Elasticsearch, Logstash, Kibana stack or using Azure Log Analytics (as briefly demonstrated in the previous chapters). The official documentation gives a good overview of possible architectures for logging solutions: https://kubernetes.io/docs/concepts/cluster-administration/logging/. In all cases, you will need to expose the application logs from your container to the outside world. From a high-level view, there are three main approaches:
- Use a container standard output (stdout) and standard error (stderr) entry point ...