参数 | 类型 | 是否必选 | 示例值 | 描述 |
Action | String | 是 | CreateUpstreamSource | 接口名称。当前 API 的名称为 CreateUpstreamSource。 |
Version | String | 是 | 2021-03-03 | 接口版本。当前 API 的版本为 2021-03-03。 |
GatewayId | String | 是 | gd8**** | |
SourceType | String | 是 | K8S | Upstream 来源类型,取值:
|
Comments | String | 否 | example | Upstream 来源备注信息。
|
SourceSpec | 是 | - | Upstream 来源配置。 | |
IngressSettings | 否 | - | 路由同步。 说明 当SourceType取值为K8S时,需要配置本参数。 | |
WatchNamespaces | Array of String | 否 | ["default"] | 指定命名空间。 说明 当SourceType取值为K8S时,需要配置本参数。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
K8SSource | 否 | - | 容器集群来源。 | |
NacosSource | 否 | - | 注册中心来源。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
EnableIngress | Boolean | 否 | true | 是否开启路由同步。取值:
说明
|
EnableAllIngressClasses | Boolean | 否 | false | 是否设置为全部 IngressClass。取值:
|
IngressClasses | Array of String | 否 | ["example"] | 指定 IngressClass。
说明 当IngressSettings.EnableAllIngressClasses取值为false时,需要配置本参数。 |
EnableIngressWithoutIngressClass | Boolean | 否 | false | 是否开启监听 IngressClass 为空的资源。取值:
说明 当IngressSettings.EnableAllIngressClasses取值为false时,需要配置本参数。 |
EnableAllNamespaces | Boolean | 否 | false | 是否设置为全部命名空间。取值:
|
WatchNamespaces | Array of String | 否 | ["default"] | 指定命名空间。 说明 当IngressSettings.EnableAllNamespaces取值为false时,需要配置本参数。 |
UpdateStatus | Boolean | 否 | false | 是否开启流量入口切换。取值:
说明
|
参数 | 类型 | 是否必选 | 示例值 | 描述 |
ClusterId | String | 是 | cc9q8p**** | |
ClusterType | String | 否 | vke | 集群类型,取值:vke,代表容器服务集群 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
NacosId | String | 否 | ncn24**** | Nacos 实例 ID。 |
AuthConfig | 否 | - | 认证配置。 | |
NacosName | String | 否 | example | Nacos 名称。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Basic | 否 | - | Nacos 登录认证。 |
参数 | 类型 | 是否必选 | 示例值 | 描述 |
Username | String | 是 | username | Nacos 登录用户名。 |
Password | String | 是 | password | Nacos 登录密码。 |
参数 | 类型 | 示例值 | 描述 |
Id | String | ust7**** | Upstream 来源 ID。 |