姓名
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 的帮助
-t, --tags=string
- 用户定义的标志,用于在注入期间区分服务。
继承的标志
这些标志继承自父命令。
--config=string
- 配置文件(默认为 $HOME/.kf)
--kubeconfig=string
- Kubectl 配置文件(默认为 $HOME/.kube/config)
--log-http
- 将 HTTP 请求记录到 stderr
--space=string
- 用于对其运行命令的空间。这会覆盖当前目标空间