Skip to content

Commit 3c42f64

Browse files
committed
[zh-cn] resync pods/YAMLs
1 parent 4135f1e commit 3c42f64

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

content/zh-cn/examples/pods/init-containers.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spec:
1111
volumeMounts:
1212
- name: workdir
1313
mountPath: /usr/share/nginx/html
14-
# These containers are run during pod initialization
14+
# 这些容器在 Pod 初始化期间运行
1515
initContainers:
1616
- name: install
1717
image: busybox:1.28

content/zh-cn/examples/pods/inject/secret-pod.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ spec:
77
- name: test-container
88
image: nginx
99
volumeMounts:
10-
# name must match the volume name below
10+
# name 必须与下面的卷名匹配
1111
- name: secret-volume
1212
mountPath: /etc/secret-volume
13-
# The secret data is exposed to Containers in the Pod through a Volume.
13+
# Secret 数据通过一个卷暴露给该 Pod 中的容器
1414
volumes:
1515
- name: secret-volume
1616
secret:

content/zh-cn/examples/pods/pod-nginx-specific-node.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Pod
33
metadata:
44
name: nginx
55
spec:
6-
nodeName: foo-node # schedule pod to specific node
6+
nodeName: foo-node # 调度 Pod 到特定的节点
77
containers:
88
- name: nginx
99
image: nginx

content/zh-cn/examples/pods/probe/pod-with-http-healthcheck.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ spec:
66
containers:
77
- name: nginx
88
image: nginx
9-
# defines the health checking
9+
# 定义健康检查
1010
livenessProbe:
11-
# an http probe
11+
# 一个 http 探针
1212
httpGet:
1313
path: /_status/healthz
1414
port: 80
15-
# length of time to wait for a pod to initialize
16-
# after pod startup, before applying health checking
15+
# Pod 启动之后,实施健康检查之前,
16+
# 等待 Pod 初始化的时间长度
1717
initialDelaySeconds: 30
1818
timeoutSeconds: 1
1919
ports:

content/zh-cn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ spec:
66
containers:
77
- name: redis
88
image: redis
9-
# defines the health checking
9+
# 定义健康检查
1010
livenessProbe:
11-
# a TCP socket probe
11+
# 一个 TCP 套接字探针
1212
tcpSocket:
1313
port: 6379
14-
# length of time to wait for a pod to initialize
15-
# after pod startup, before applying health checking
14+
# Pod 启动之后,实施健康检查之前,
15+
# 等待 Pod 初始化的时间长度
1616
initialDelaySeconds: 30
1717
timeoutSeconds: 1
1818
ports:

0 commit comments

Comments
 (0)