File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed
content/zh-cn/docs/tutorials Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -244,9 +244,16 @@ Deployment 是管理 Pod 创建和扩展的推荐方法。
244
244
```
245
245
246
246
<!--
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`) .
248
248
-->
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 >}}
250
257
251
258
``` shell
252
259
kubectl logs hello-node-5f76cf6ccf-br9b5
@@ -283,6 +290,16 @@ Kubernetes [*Service*](/docs/concepts/services-networking/service/).
283
290
要使得 ` hello-node ` 容器可以从 Kubernetes 虚拟网络的外部访问,你必须将 Pod
284
291
通过 Kubernetes [ ** Service** ] ( /zh-cn/docs/concepts/services-networking/service/ ) 公开出来。
285
292
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
+
286
303
<!--
287
304
1. Expose the Pod to the public internet using the `kubectl expose` command:
288
305
-->
You can’t perform that action at this time.
0 commit comments