[zh-cn] Resync /configuration/secret.md

pull/36219/head
Michael 2022-08-24 17:12:29 +08:00
parent 28b1854383
commit 0e9a8224b8
1 changed files with 4 additions and 4 deletions

View File

@ -964,7 +964,7 @@ metadata:
spec:
containers:
- name: test-container
image: k8s.gcr.io/busybox
image: registry.k8s.io/busybox
command: [ "/bin/sh", "-c", "env" ]
envFrom:
- secretRef:
@ -1204,7 +1204,7 @@ kubectl apply -k .
Both containers will have the following files present on their filesystems with the values
for each container's environment:
-->
两个文件都会在其文件系统中出现下面的文件,文件中内容是各个容器的环境值:
两个文件都会在其文件系统中出现下面的文件,文件中内容是各个容器的环境值:
```
/etc/secret-volume/username
@ -1279,7 +1279,7 @@ spec:
secretName: dotfile-secret
containers:
- name: dotfile-test-container
image: k8s.gcr.io/busybox
image: registry.k8s.io/busybox
command:
- ls
- "-l"
@ -2206,7 +2206,7 @@ Pod 来访问 Secret 的内容。
<!--
- In the API server, objects (including Secrets) are persisted into
{{< glossary_tooltip term_id="etcd" >}}; therefore:
- only allow cluster admistrators to access etcd (this includes read-only access);
- only allow cluster administrators to access etcd (this includes read-only access);
- enable [encryption at rest](/docs/tasks/administer-cluster/encrypt-data/)
for Secret objects, so that the data of these Secrets are not stored in the clear
into {{< glossary_tooltip term_id="etcd" >}};