[zh] Update configure-pod-container
Signed-off-by: xin.li <xin.li@daocloud.io>
This commit is contained in:
+1
-1
@@ -308,7 +308,7 @@ local workstation to debug the database that is running in the Pod.
|
||||
## 讨论 {#discussion}
|
||||
|
||||
与本地 28015 端口建立的连接将转发到运行 MongoDB 服务器的 Pod 的 27017 端口。
|
||||
通过此连接,您可以使用本地工作站来调试在 Pod 中运行的数据库。
|
||||
通过此连接,你可以使用本地工作站来调试在 Pod 中运行的数据库。
|
||||
|
||||
<!--
|
||||
`kubectl port-forward` is implemented for TCP ports only.
|
||||
|
||||
@@ -46,7 +46,7 @@ Here is the configuration file for the Pod:
|
||||
|
||||
## 为 Pod 配置 projected 卷
|
||||
|
||||
本练习中,您将从本地文件来创建包含有用户名和密码的 Secret。然后创建运行一个容器的 Pod,
|
||||
本练习中,你将从本地文件来创建包含有用户名和密码的 Secret。然后创建运行一个容器的 Pod,
|
||||
该 Pod 使用[`projected`](/zh/docs/concepts/storage/volumes/#projected) 卷将 Secret 挂载到相同的路径下。
|
||||
|
||||
下面是 Pod 的配置文件:
|
||||
|
||||
@@ -63,7 +63,7 @@ The login process creates or updates a `config.json` file that holds an authoriz
|
||||
|
||||
View the `config.json` file:
|
||||
-->
|
||||
当出现提示时,输入您的 Docker ID 和登录凭证(访问令牌、
|
||||
当出现提示时,输入你的 Docker ID 和登录凭证(访问令牌、
|
||||
或 Docker ID 的密码)。
|
||||
|
||||
登录过程会创建或更新保存有授权令牌的 `config.json` 文件。
|
||||
|
||||
@@ -34,7 +34,7 @@ You can use this feature to configure cooperating containers, such as a log
|
||||
handler sidecar container, or to troubleshoot container images that don't
|
||||
include debugging utilities like a shell.
|
||||
-->
|
||||
您可以使用此功能来配置协作容器,比如日志处理 sidecar 容器,或者对那些不包含诸如 shell 等调试实用工具的镜像进行故障排查。
|
||||
你可以使用此功能来配置协作容器,比如日志处理 sidecar 容器,或者对那些不包含诸如 shell 等调试实用工具的镜像进行故障排查。
|
||||
|
||||
|
||||
|
||||
@@ -110,7 +110,7 @@ Process Namespace Sharing is enabled using the `ShareProcessNamespace` field of
|
||||
You can signal processes in other containers. For example, send `SIGHUP` to
|
||||
nginx to restart the worker process. This requires the `SYS_PTRACE` capability.
|
||||
-->
|
||||
您可以在其他容器中对进程发出信号。例如,发送 `SIGHUP` 到 nginx 以重启工作进程。这需要 `SYS_PTRACE` 功能。
|
||||
你可以在其他容器中对进程发出信号。例如,发送 `SIGHUP` 到 nginx 以重启工作进程。这需要 `SYS_PTRACE` 功能。
|
||||
|
||||
```
|
||||
/ # kill -HUP 8
|
||||
|
||||
Reference in New Issue
Block a user