任务作业

创建K8s部署任务

创建K8s集群部署任务

post/api/v1/task/k8s

Request

  • The document declares no server URL.
  • Auth
    API key in header Authorization

Request body multipart/form-data

namestring required

任务名称

descriptionstring

任务描述

cluster_namestring required

K8s集群名称

cluster_versionstring required

K8s集群版本

deployment_modeinteger required

部署模式(1=单节点,2=集群)

master_host_idsstring required

Master节点主机ID数组JSON

worker_host_idsstring

Worker节点主机ID数组JSON

etcd_host_idsstring required

ETCD节点主机ID数组JSON

enabled_componentsstring

启用组件数组JSON

private_registrystring

私有仓库地址

registry_usernamestring

仓库用户名

registry_passwordstring

仓库密码

Response

OK

codeinteger

状态码

messagestring

提示信息

Changes

No recorded changes to this operation across all 1 revision of this API.