名称
kf create-service - 从市场模板创建服务实例。
摘要
kf create-service SERVICE PLAN SERVICE_INSTANCE [-c PARAMETERS_AS_JSON] [-b service-broker] [-t TAGS] [flags]
说明
create-service 命令使用市场中的模板创建新的 ServiceInstance。
示例
# Creates a new instance of a db-service with the name mydb, plan silver, and provisioning configuration
kf create-service db-service silver mydb -c '{"ram_gb":4}'
# Creates a new instance of a db-service from the broker named local-broker
kf create-service db-service silver mydb -c ~/workspace/tmp/instance_config.json -b local-broker
# Creates a new instance of a db-service with the name mydb and override tags
kf create-service db-service silver mydb -t "list, of, tags"标志
--async返回之前,请勿等待服务器上的操作完成。
-b, --broker=string将创建实例的 Service Broker 的名称。
-h, --help有关 create-service 的帮助
-c, --parameters=string包含配置参数的 JSON 文件的 JSON 对象或路径。(默认值为“{}”)
-t, --tags=string用户定义的标志,用于在注入期间区分服务。
--timeout=duration等待操作完成的时长。有效单位为“s”、“m”、“h”。(默认值为 30m0s)
继承的标志
这些标志继承自父命令。
--as=string要为操作模拟的用户名。
--as-group=strings要为操作模拟的群组。多次添加此标志可指定多个群组。
--config=string用于 CLI 请求的 Kf 配置文件的路径。
--kubeconfig=string用于 CLI 请求的 kubeconfig 文件的路径。
--log-http将 HTTP 请求记录到标准错误。
--space=string用于对其运行命令的空间。此标志会替换当前所针对的空间。