diff --git a/content/zh-cn/examples/pods/init-containers.yaml b/content/zh-cn/examples/pods/init-containers.yaml index e55895d673f..d3b614f32e8 100644 --- a/content/zh-cn/examples/pods/init-containers.yaml +++ b/content/zh-cn/examples/pods/init-containers.yaml @@ -11,7 +11,7 @@ spec: volumeMounts: - name: workdir mountPath: /usr/share/nginx/html - # These containers are run during pod initialization + # 这些容器在 Pod 初始化期间运行 initContainers: - name: install image: busybox:1.28 diff --git a/content/zh-cn/examples/pods/inject/secret-pod.yaml b/content/zh-cn/examples/pods/inject/secret-pod.yaml index 8be694cddee..b1abd9b0372 100644 --- a/content/zh-cn/examples/pods/inject/secret-pod.yaml +++ b/content/zh-cn/examples/pods/inject/secret-pod.yaml @@ -7,10 +7,10 @@ spec: - name: test-container image: nginx volumeMounts: - # name must match the volume name below + # name 必须与下面的卷名匹配 - name: secret-volume mountPath: /etc/secret-volume - # The secret data is exposed to Containers in the Pod through a Volume. + # Secret 数据通过一个卷暴露给该 Pod 中的容器 volumes: - name: secret-volume secret: diff --git a/content/zh-cn/examples/pods/pod-nginx-specific-node.yaml b/content/zh-cn/examples/pods/pod-nginx-specific-node.yaml index 5923400d645..9e76f921b1d 100644 --- a/content/zh-cn/examples/pods/pod-nginx-specific-node.yaml +++ b/content/zh-cn/examples/pods/pod-nginx-specific-node.yaml @@ -3,7 +3,7 @@ kind: Pod metadata: name: nginx spec: - nodeName: foo-node # schedule pod to specific node + nodeName: foo-node # 调度 Pod 到特定的节点 containers: - name: nginx image: nginx diff --git a/content/zh-cn/examples/pods/probe/pod-with-http-healthcheck.yaml b/content/zh-cn/examples/pods/probe/pod-with-http-healthcheck.yaml index 3f40854e92c..97575238527 100644 --- a/content/zh-cn/examples/pods/probe/pod-with-http-healthcheck.yaml +++ b/content/zh-cn/examples/pods/probe/pod-with-http-healthcheck.yaml @@ -6,14 +6,14 @@ spec: containers: - name: nginx image: nginx - # defines the health checking + # 定义健康检查 livenessProbe: - # an http probe + # 一个 http 探针 httpGet: path: /_status/healthz port: 80 - # length of time to wait for a pod to initialize - # after pod startup, before applying health checking + # Pod 启动之后,实施健康检查之前, + # 等待 Pod 初始化的时间长度 initialDelaySeconds: 30 timeoutSeconds: 1 ports: diff --git a/content/zh-cn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml b/content/zh-cn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml index 5f0bca283c3..adc2e4546f7 100644 --- a/content/zh-cn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml +++ b/content/zh-cn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml @@ -6,13 +6,13 @@ spec: containers: - name: redis image: redis - # defines the health checking + # 定义健康检查 livenessProbe: - # a TCP socket probe + # 一个 TCP 套接字探针 tcpSocket: port: 6379 - # length of time to wait for a pod to initialize - # after pod startup, before applying health checking + # Pod 启动之后,实施健康检查之前, + # 等待 Pod 初始化的时间长度 initialDelaySeconds: 30 timeoutSeconds: 1 ports: