sync managing-secret-using-kubectl managing-secret-using-kustomize crictl
parent
3a25d2c220
commit
b3ccf05a38
|
@ -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
|
||||
-->
|
||||
|
|
|
@ -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" >}}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue