Skip to content

Commit a7ba8fa

Browse files
committed
[zh-cn] resync examples/debug/YAMLs
1 parent 4135f1e commit a7ba8fa

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

content/zh-cn/examples/debug/fluentd-gcp-ds.yaml

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,21 @@ spec:
2121
k8s-app: fluentd-gcp
2222
kubernetes.io/cluster-service: "true"
2323
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)
2727
annotations:
2828
scheduler.alpha.kubernetes.io/critical-pod: ''
2929
spec:
3030
dnsPolicy: Default
3131
containers:
3232
- name: fluentd-gcp
3333
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 的详细程度。
3939
command:
4040
- '/bin/sh'
4141
- '-c'
@@ -60,13 +60,12 @@ spec:
6060
readOnly: true
6161
- name: config-volume
6262
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+
# 请考虑更改阈值或彻底关闭存活探针。
7069
livenessProbe:
7170
initialDelaySeconds: 600
7271
periodSeconds: 60

content/zh-cn/examples/debug/node-problem-detector-configmap.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ spec:
3737
- name: log
3838
mountPath: /log
3939
readOnly: true
40-
- name: config # Overwrite the config/ directory with ConfigMap volume
40+
- name: config # 使用 ConfigMap 卷中的数据覆盖 config/ 目录内容
4141
mountPath: /config
4242
readOnly: true
4343
volumes:
4444
- name: log
4545
hostPath:
4646
path: /var/log/
47-
- name: config # Define ConfigMap volume
47+
- name: config # 定义 ConfigMap
4848
configMap:
4949
name: node-problem-detector-config

0 commit comments

Comments
 (0)