-
的输出只会显示键的名称及其大小。 3. 使用带有 -o 选项的 oc get 命令以查看键的值: 输出示例 出示例 $ cat example-files/ui.properties color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice $ oc create configmap game-config --from-file 选项传递给 CLI。以下示例生成与从目录创建示例相同的结果。 1. 创建 ConfigMap 指定特定文件: 2. 验证结果: 输出示例 出示例 color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice kind: ConfigMap metadata: passphrase=UUDDLRLRBABAS secret.code.allowed=true secret.code.lives=30 ui.properties: | color.good=purple color.bad=yellow 第 第 15 章 章 创 创建和使用 建和使用 CONFIGMAP 91 1 您可以为从文件中导入的内容在 ConfigMap 中指定要设置的键。这可以通过向
0 码力 |
101 页 |
1.12 MB
| 1 年前 3
-
passphrase=UUDDLRLRBABAS secret.code.allowed=true secret.code.lives=30 $ cat example-files/ui.properties color.good=purple color.bad=yellow allow.textmode=true 第 第 2 章 章 使用 使用 POD 63 2. 输入以下命令,创建包含此目录中每个文件内容的配置映射: passphrase=UUDDLRLRBABAS secret.code.allowed=true secret.code.lives=30 ui.properties: | color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice kind: ConfigMap metadata: passphrase=UUDDLRLRBABAS secret.code.allowed=true secret.code.lives=30 ui.properties: | color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice kind: ConfigMap metadata:
0 码力 |
374 页 |
3.80 MB
| 1 年前 3
-
都是从命令中指定的目录 录中的文件名 中的文件名创 创建的。因 建的。因为这 为这些 些键 键的内 的内 $ cat example-files/ui.properties color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice $ oc create configmap game-config passphrase=UUDDLRLRBABAS secret.code.allowed=true secret.code.lives=30 ui.properties: | color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice kind: ConfigMap metadata: passphrase=UUDDLRLRBABAS secret.code.allowed=true secret.code.lives=30 ui.properties: | color.good=purple color.bad=yellow allow.textmode=true how.nice.to.look=fairlyNice kind: ConfigMap metadata:
0 码力 |
404 页 |
3.60 MB
| 1 年前 3
-
openshift.io/v1 kind: ConsoleNotification metadata: name: example spec: backgroundColor: '#0088ce' color: '#fff' link: href: 'https://www.example.com' text: Optional link text location: BannerTop
0 码力 |
17 页 |
209.14 KB
| 1 年前 3
-
location: BannerTop 1 link: href: 'https://www.example.com' text: Optional link text color: '#fff' backgroundColor: '#0088ce' apiVersion: console.openshift.io/v1 kind: ConsoleCLIDownload
0 码力 |
44 页 |
651.51 KB
| 1 年前 3
-
http://web.default
Welcome to nginx!