kf create-space

姓名

kf create-space - 创建具有给定名称的空间。

摘要

kf create-space NAME [flags]

示例

# Create a Space with custom domains.
kf create-space my-space --domain my-space.my-company.com

# Create a Space that uses unique storage and service accounts.
kf create-space my-space -container-registry gcr.io/my-project --build-service-account myserviceaccount

# Set running and staging environment variables for Apps and Builds.
kf create-space my-space --run-env=ENVIRONMENT=nonprod --stage-env=ENVIRONMENT=nonprod,JDK_VERSION=8

标志

--build-service-account=string

构建将要使用的服务账号。

--container-registry=string

Container Registry 构建的应用和源代码将存储在其中。

--domain=stringArray

设置空间的有效网域。提供的第一个网域是默认网域。

-h, --help

有关 create-space 的帮助

--run-env=stringToString

设置空间中所有应用的运行环境变量。

--stage-env=stringToString

设置空间中所有构建的预演环境变量。

继承的标志

这些标志继承自父命令。

--as=string

操作要模拟的用户名。

--as-group=strings

操作要模拟的群组。多次添加此标志可指定多个群组。

--config=string

用于 CLI 请求的 Kf 配置文件的路径。

--kubeconfig=string

用于 CLI 请求的 kubeconfig 文件的路径。

--log-http

将 HTTP 请求记录到标准错误。

--space=string

用于对其运行命令的空间。此标志会替换当前所针对的空间。