Merge pull request #47197 from my-git9/pp-27379

[zh-cn] sync tutorials/hello-minikube.md
pull/47211/head
Kubernetes Prow Robot 2024-07-18 18:45:37 -07:00 committed by GitHub
commit c441a2007c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 2 deletions

View File

@ -244,9 +244,16 @@ Deployment 是管理 Pod 创建和扩展的推荐方法。
```
<!--
1. View application logs for a container in a pod.
1. View application logs for a container in a pod (replace pod name with the one you got from `kubectl get pods`).
-->
1. 查看 Pod 中容器的应用程序日志。
1. 查看 Pod 中容器的应用程序日志(将 Pod 名称替换为你用 `kubectl get pods` 命令获得的名称)。
{{< note >}}
<!--
Replace `hello-node-5f76cf6ccf-br9b5` in the `kubectl logs` command with the name of the pod from the `kubectl get pods` command output.
-->
`kubectl logs` 命令中的 `hello-node-5f76cf6ccf-br9b5` 替换为 `kubectl get pods` 命令输出中的 Pod 名称。
{{< /note >}}
```shell
kubectl logs hello-node-5f76cf6ccf-br9b5
@ -283,6 +290,16 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
要使得 `hello-node` 容器可以从 Kubernetes 虚拟网络的外部访问,你必须将 Pod
通过 Kubernetes [**Service**](/zh-cn/docs/concepts/services-networking/service/) 公开出来。
{{< warning >}}
<!--
The agnhost container has a `/shell` endpoint, which is useful for
debugging, but dangerous to expose to the public internet. Do not run this on an
internet-facing cluster, or a production cluster.
-->
agnhost 容器有一个 `/shell` 端点,对于调试很有帮助,但暴露给公共互联网很危险。
请勿在面向互联网的集群或生产集群上运行它。
{{< /warning >}}
<!--
1. Expose the Pod to the public internet using the `kubectl expose` command:
-->