4 - 日志
Rancher supports the following services:
Setting up a logging service to collect logs from your cluster/project is helpful several ways:
- Logs errors and warnings in your Kubernetes infrastructure to a stream. The stream informs you of events like a container crashing, a pod eviction, or a node dying.
- Allows you to capture and analyze the state of your cluster and look for trends in your environment using the log stream.
- Saves your logs to a safe location outside of your cluster, so that you can still access them even if your cluster encounters issues.
- If you’re a who works in operations or security, configure cluster logging.
Cluster logging writes logs for every pod in the cluster and, in RKE clusters, Kubernetes system components. Logs from the following locations are sent to your logging service:
The path for Kubernetes system components.
Project logging writes logs for every pod in the project ().