Skip to content

Commit c441a20

Browse files
authored
Merge pull request #47197 from my-git9/pp-27379
[zh-cn] sync tutorials/hello-minikube.md
2 parents 3ce6fe6 + 5ee0e49 commit c441a20

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

content/zh-cn/docs/tutorials/hello-minikube.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,16 @@ Deployment 是管理 Pod 创建和扩展的推荐方法。
244244
```
245245

246246
<!--
247-
1. View application logs for a container in a pod.
247+
1. View application logs for a container in a pod (replace pod name with the one you got from `kubectl get pods`).
248248
-->
249-
1. 查看 Pod 中容器的应用程序日志。
249+
1. 查看 Pod 中容器的应用程序日志(将 Pod 名称替换为你用 `kubectl get pods` 命令获得的名称)。
250+
251+
{{< note >}}
252+
<!--
253+
Replace `hello-node-5f76cf6ccf-br9b5` in the `kubectl logs` command with the name of the pod from the `kubectl get pods` command output.
254+
-->
255+
`kubectl logs` 命令中的 `hello-node-5f76cf6ccf-br9b5` 替换为 `kubectl get pods` 命令输出中的 Pod 名称。
256+
{{< /note >}}
250257

251258
```shell
252259
kubectl logs hello-node-5f76cf6ccf-br9b5
@@ -283,6 +290,16 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
283290
要使得 `hello-node` 容器可以从 Kubernetes 虚拟网络的外部访问,你必须将 Pod
284291
通过 Kubernetes [**Service**](/zh-cn/docs/concepts/services-networking/service/) 公开出来。
285292

293+
{{< warning >}}
294+
<!--
295+
The agnhost container has a `/shell` endpoint, which is useful for
296+
debugging, but dangerous to expose to the public internet. Do not run this on an
297+
internet-facing cluster, or a production cluster.
298+
-->
299+
agnhost 容器有一个 `/shell` 端点,对于调试很有帮助,但暴露给公共互联网很危险。
300+
请勿在面向互联网的集群或生产集群上运行它。
301+
{{< /warning >}}
302+
286303
<!--
287304
1. Expose the Pod to the public internet using the `kubectl expose` command:
288305
-->

0 commit comments

Comments
 (0)