Skip to content

Commit

Permalink
sync managing-secret-using-kubectl managing-secret-using-kustomize cr…
Browse files Browse the repository at this point in the history
…ictl
  • Loading branch information
asa3311 committed Jan 2, 2024
1 parent 3a25d2c commit b3ccf05
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Expand Up @@ -70,6 +70,13 @@ characters.
你必须使用单引号 `''` 转义字符串中的特殊字符,如 `$``\``*``=``!` 。否则,你的 shell
将会解析这些字符。

{{< note >}}
<!--
The `stringData` field for a Secret does not work well with server-side apply.
-->
Secret 的 `stringData` 字段与服务端应用不兼容。
{{< /note >}}

<!--
### Use source files
-->
Expand Down
Expand Up @@ -44,6 +44,13 @@ file for the username `admin` and the password `1f2d1e2e67df`.
并在定义中引用其它本地文件、`.env` 文件或文字值生成 Secret。
例如:下面的指令为用户名 `admin` 和密码 `1f2d1e2e67df` 创建 Kustomization 文件。

{{< note >}}
<!--
The `stringData` field for a Secret does not work well with server-side apply.
-->
Secret 的 `stringData` 字段与服务端应用不兼容。
{{< /note >}}

### 创建 Kustomization 文件 {#create-the-kustomization-file}

{{< tabs name="Secret data" >}}
Expand Down
4 changes: 2 additions & 2 deletions content/zh-cn/docs/tasks/debug/debug-cluster/crictl.md
Expand Up @@ -423,13 +423,13 @@ deleted by the Kubelet.
### Create a container
Using `crictl` to create a container is useful for debugging container runtimes.
On a running Kubernetes cluster, the sandbox will eventually be stopped and
On a running Kubernetes cluster, the container will eventually be stopped and
deleted by the Kubelet.
-->
### 创建容器 {#create-a-container}

`crictl` 创建容器对容器运行时排错很有帮助。
在运行的 Kubernetes 集群中,沙盒会随机地被 kubelet 停止和删除。
在运行的 Kubernetes 集群中,容器最终将被 kubelet 停止和删除。

<!--
1. Pull a busybox image
Expand Down

0 comments on commit b3ccf05

Please sign in to comment.