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