Skip to content

Commit

Permalink
Merge pull request rootsongjc#338 from willseeyou/patch-6
Browse files Browse the repository at this point in the history
Update configmap.md
  • Loading branch information
rootsongjc authored Mar 18, 2019
2 parents 3f7c823 + 31ba7f7 commit ed33ffa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions concepts/configmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## ConfigMap概览

**ConfigMap API**资源用来保存**key-value pair**配置数据,这个数据可以在**pods**里使用,或者被用来为像**controller**一样的系统组件存储配置数据。虽然ConfigMap跟[Secrets](https://kubernetes.io/docs/user-guide/secrets/)类似,但是ConfigMap更方便的处理不含敏感信息的字符串。 注意:ConfigMaps不是属性配置文件的替代品。ConfigMaps只是作为多个properties文件的引用。你可以把它理解为Linux系统中的`/etc`目录,专门用来存储配置文件的目录。下面举个例子,使用ConfigMap配置来创建Kuberntes Volumes,ConfigMap中的每个data项都会成为一个新文件。
**ConfigMap API**资源用来保存**key-value pair**配置数据,这个数据可以在**pods**里使用,或者被用来为像**controller**一样的系统组件存储配置数据。虽然ConfigMap跟[Secrets](https://kubernetes.io/docs/user-guide/secrets/)类似,但是ConfigMap更方便的处理不含敏感信息的字符串。 注意:ConfigMaps不是属性配置文件的替代品。ConfigMaps只是作为多个properties文件的引用。你可以把它理解为Linux系统中的`/etc`目录,专门用来存储配置文件的目录。下面举个例子,使用ConfigMap配置来创建Kubernetes Volumes,ConfigMap中的每个data项都会成为一个新文件。

```yaml
kind: ConfigMap
Expand Down Expand Up @@ -367,4 +367,4 @@ spec:
restartPolicy: Never
```

运行这个Pod后的结果是`very`。
运行这个Pod后的结果是`very`。

0 comments on commit ed33ffa

Please sign in to comment.