@@ -21,21 +21,21 @@ spec:
21
21
k8s-app : fluentd-gcp
22
22
kubernetes.io/cluster-service : " true"
23
23
version : v2.0
24
- # This annotation ensures that fluentd does not get evicted if the node
25
- # supports critical pod annotation based priority scheme.
26
- # Note that this does not guarantee admission on the nodes (#40573).
24
+ # 如果节点支持基于关键 Pod 注解的优先级方案,
25
+ # 此注解可确保 fluentd 不会被驱逐。
26
+ # 请注意,此注解并不保证在这些节点上准入 (#40573)。
27
27
annotations :
28
28
scheduler.alpha.kubernetes.io/critical-pod : ' '
29
29
spec :
30
30
dnsPolicy : Default
31
31
containers :
32
32
- name : fluentd-gcp
33
33
image : k8s.gcr.io/fluentd-gcp:2.0.2
34
- # If fluentd consumes its own logs, the following situation may happen:
35
- # fluentd fails to send a chunk to the server => writes it to the log =>
36
- # tries to send this message to the server => fails to send a chunk and so on.
37
- # Writing to a file, which is not exported to the back-end prevents it.
38
- # It also allows to increase the fluentd verbosity by default.
34
+ # 如果 fluentd 消耗它自己的日志,则可能出现以下情形:
35
+ # fluentd 将一个块发送到服务器时失败 => 将其写入到日志 =>
36
+ # 尝试将此消息发送到该服务器 => 发送一个块时失败等等。
37
+ # 写入一个未导出到后端的文件,可以避免发生这类事情。
38
+ # 它还默认允许增加 fluentd 的详细程度。
39
39
command :
40
40
- ' /bin/sh'
41
41
- ' -c'
@@ -60,13 +60,12 @@ spec:
60
60
readOnly : true
61
61
- name : config-volume
62
62
mountPath : /etc/fluent/config.d
63
- # Liveness probe is aimed to help in situations where fluentd
64
- # silently hangs for no apparent reasons until manual restart.
65
- # The idea of this probe is that if fluentd is not queueing or
66
- # flushing chunks for 5 minutes, something is not right. If
67
- # you want to change the fluentd configuration, reducing amount of
68
- # logs fluentd collects, consider changing the threshold or turning
69
- # liveness probe off completely.
63
+ # 存活探针旨在帮助处理 fluentd 无明显原因就静默挂起的情况,
64
+ # 这种情况通常只能手动重启。这个探针的思路是:
65
+ # 如果 fluentd 有 5 分钟未执行队列操作或未清洗数据分块,
66
+ # 那么肯定出现了什么问题。
67
+ # 如果你要更改 fluentd 配置以减少 fluentd 收集的日志量,
68
+ # 请考虑更改阈值或彻底关闭存活探针。
70
69
livenessProbe :
71
70
initialDelaySeconds : 600
72
71
periodSeconds : 60
0 commit comments