You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 17, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,19 @@ This is an centos7 based image for running [fluentd](http://fluentd.org). It is
11
11
12
12
This work is based on the [docker-fluentd](https://github.com/fabric8io/docker-fluentd) and [docker-fluentd-kubernetes](https://github.com/fabric8io/docker-fluentd-kubernetes) images by the fabric8 team. This image is in with [deis](https://github.com/deis/deis) v2 to send all log data to the [logger](https://github.com/deis/logger) component.
13
13
14
+
### Enable more verbose logging
15
+
By default we do not capture kubernetes system logs. However, it is possible to tell fluentd to capture those logs just by specifying a few new environment variables.
16
+
17
+
* CAPTURE_START_SCRIPT
18
+
* CAPTURE_DOCKER_LOG
19
+
* CAPTURE_ETCD_LOG
20
+
* CAPTURE_KUBELET_LOG
21
+
* CAPTURE_KUBE_API_LOG
22
+
* CAPTURE_CONTROLLER_LOG
23
+
* CAPTURE_SCHEDULER_LOG
24
+
25
+
Set a variable's value to a non-empty string such as "true" to capture that log. Make these changes to the tpl/deis-logger-fluentd-daemon.yaml file in the Workflow chart directory.
# I0204 06:55:31.872680 5 servicecontroller.go:277] LB already exists and doesn't need update for service kube-system/kube-ui
77
106
<source>
@@ -83,7 +112,12 @@ cat << EOF >> $FLUENTD_CONF
83
112
pos_file /var/log/kube-controller-manager.log.pos
84
113
tag kube-controller-manager
85
114
</source>
115
+
EOF
116
+
fi
86
117
118
+
if [ -n"$CAPTURE_SCHEDULER_LOG" ]
119
+
then
120
+
cat <<EOF >> $FLUENTD_CONF
87
121
# Example:
88
122
# W0204 06:49:18.239674 7 reflector.go:245] pkg/scheduler/factory/factory.go:193: watch of *api.Service ended with: 401: The event in requested index is outdated and cleared (the requested history has been cleared [2578313/2577886]) [2579312]
89
123
<source>
@@ -96,6 +130,7 @@ cat << EOF >> $FLUENTD_CONF
96
130
tag kube-scheduler
97
131
</source>
98
132
EOF
133
+
fi
99
134
else
100
135
echo"/var/log/containers does not exist in the container."
0 commit comments