File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
content/zh/docs/tasks/configure-pod-container Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -73,17 +73,6 @@ For example: -->
73
73
你可以使用 ` kubectl create configmap ` 从同一目录中的多个文件创建 ConfigMap。
74
74
75
75
例如:
76
-
77
- <!-- # Create the local directory
78
- mkdir -p configure-pod-container/configmap/
79
-
80
- # Download the sample files into `configure-pod-container/configmap/` directory
81
- wget https://kubernetes.io/examples/configmap/game.properties -O configure-pod-container/configmap/game.properties
82
- wget https://kubernetes.io/examples/configmap/ui.properties -O configure-pod-container/configmap/ui.properties
83
-
84
- # Create the configmap
85
- kubectl create configmap game-config --from-file=configure-pod-container/configmap/ -->
86
-
87
76
``` shell
88
77
# 创建本地目录
89
78
mkdir -p configure-pod-container/configmap/
@@ -534,18 +523,6 @@ configmap/game-config-5-m67dt67794 created
534
523
<!-- To generate a ConfigMap from literals `special.type=charm` and `special.how=very`,
535
524
you can specify the ConfigMap generator in `kusotmization.yaml` as -->
536
525
要从文字 ` special.type=charm ` 和 ` special.how=very ` 生成 ConfigMap,可以在 ` kusotmization.yaml ` 中将 ConfigMap 生成器指定。
537
-
538
- <!-- ```shell
539
- # Create a kustomization.yaml file with ConfigMapGenerator
540
- cat <<EOF >./kustomization.yaml
541
- configMapGenerator:
542
- - name: special-config-2
543
- literals:
544
- - special.how=very
545
- - special.type=charm
546
- EOF
547
- ``` -->
548
-
549
526
``` shell
550
527
# 使用 ConfigMapGenerator 创建 kustomization.yaml 文件
551
528
cat << EOF >./kustomization.yaml
You can’t perform that action at this time.
0 commit comments