Polish configure-pod-configmap.md format (#19508)
This commit is contained in:
@@ -74,9 +74,16 @@ For example: -->
|
|||||||
|
|
||||||
例如:
|
例如:
|
||||||
|
|
||||||
# Create the local directory
|
<!-- # Create the local directory
|
||||||
|
mkdir -p configure-pod-container/configmap/
|
||||||
|
|
||||||
# Download the sample files into `configure-pod-container/configmap/` directory
|
# Download the sample files into `configure-pod-container/configmap/` directory
|
||||||
|
wget https://kubernetes.io/examples/configmap/game.properties -O configure-pod-container/configmap/game.properties
|
||||||
|
wget https://kubernetes.io/examples/configmap/ui.properties -O configure-pod-container/configmap/ui.properties
|
||||||
|
|
||||||
# Create the configmap
|
# Create the configmap
|
||||||
|
kubectl create configmap game-config --from-file=configure-pod-container/configmap/ -->
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# 创建本地目录
|
# 创建本地目录
|
||||||
mkdir -p configure-pod-container/configmap/
|
mkdir -p configure-pod-container/configmap/
|
||||||
@@ -527,6 +534,7 @@ configmap/game-config-5-m67dt67794 created
|
|||||||
<!-- To generate a ConfigMap from literals `special.type=charm` and `special.how=very`,
|
<!-- To generate a ConfigMap from literals `special.type=charm` and `special.how=very`,
|
||||||
you can specify the ConfigMap generator in `kusotmization.yaml` as -->
|
you can specify the ConfigMap generator in `kusotmization.yaml` as -->
|
||||||
要从文字 `special.type=charm` 和 `special.how=very` 生成 ConfigMap,可以在 `kusotmization.yaml` 中将 ConfigMap 生成器指定。
|
要从文字 `special.type=charm` 和 `special.how=very` 生成 ConfigMap,可以在 `kusotmization.yaml` 中将 ConfigMap 生成器指定。
|
||||||
|
|
||||||
<!-- ```shell
|
<!-- ```shell
|
||||||
# Create a kustomization.yaml file with ConfigMapGenerator
|
# Create a kustomization.yaml file with ConfigMapGenerator
|
||||||
cat <<EOF >./kustomization.yaml
|
cat <<EOF >./kustomization.yaml
|
||||||
@@ -537,6 +545,7 @@ configMapGenerator:
|
|||||||
- special.type=charm
|
- special.type=charm
|
||||||
EOF
|
EOF
|
||||||
``` -->
|
``` -->
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
# 使用 ConfigMapGenerator 创建 kustomization.yaml 文件
|
# 使用 ConfigMapGenerator 创建 kustomization.yaml 文件
|
||||||
cat <<EOF >./kustomization.yaml
|
cat <<EOF >./kustomization.yaml
|
||||||
|
|||||||
Reference in New Issue
Block a user