General Configuration
Parameter | Description | Required | Default |
---|---|---|---|
maxRecentLogLines | Optional Max tail log lines in messages, if it's not provided it will get all log lines | ||
namespaces | Optional comma separated list of namespaces that you want to watch or forbid, if it's not provided it will watch all namespaces. If you want to forbid a namespace, configure it with !<namespace name> . You can either set forbidden namespaces or allowed, not both. | ||
reasons | Optional comma separated list of reasons that you want to watch or forbid, if it's not provided it will watch all reasons. If you want to forbid a reason, configure it with !<reason> . You can either set forbidden reasons or allowed, not both. | ||
ignoreFailedGracefulShutdown | If set to true, containers which are forcefully killed during shutdown (as their graceful shutdown failed) are not reported as error | ||
ignoreContainerNames | Optional comma separated list of container names to ignore | ||
ignorePodNames | Optional list of pod name regexp patterns to ignore | ||
IgnoreLogPatterns | Optional list of regexp patterns of logs to ignore |
Example
apiVersion: v1
kind: Namespace
metadata:
name: kwatch
---
apiVersion: v1
kind: ConfigMap
metadata:
name: kwatch
namespace: kwatch
data:
config.yaml: |
maxRecentLogLines: 20
ignoreFailedGracefulShutdown: true
namespaces:
- default