volcenginecc.apig.UpstreamSource
API 网关支持基于容器服务(VKE)集和容器服务的注册集群功能,将集群导入到 API 网关实例,将其作为网关的 Upstream 来源,以便网关获取集群中的 Service 列表。
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
resources:
upstreamSourceNacosDemo:
type: volcenginecc:apig:UpstreamSource
name: UpstreamSourceNacosDemo
properties:
gatewayId: gd3s9vbk7npja181xxxxx
comments: upstreamSourceNacosDemo
sourceType: Nacos
sourceSpec:
nacos_source:
nacosId: nd3thmnjdl46p917xxxxx
authConfig:
basic:
username: nacos
password: '******'
Create UpstreamSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new UpstreamSource(name: string, args: UpstreamSourceArgs, opts?: CustomResourceOptions);@overload
def UpstreamSource(resource_name: str,
args: UpstreamSourceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def UpstreamSource(resource_name: str,
opts: Optional[ResourceOptions] = None,
gateway_id: Optional[str] = None,
source_spec: Optional[UpstreamSourceSourceSpecArgs] = None,
source_type: Optional[str] = None,
comments: Optional[str] = None,
ingress_settings: Optional[UpstreamSourceIngressSettingsArgs] = None,
watch_namespaces: Optional[Sequence[str]] = None)func NewUpstreamSource(ctx *Context, name string, args UpstreamSourceArgs, opts ...ResourceOption) (*UpstreamSource, error)public UpstreamSource(string name, UpstreamSourceArgs args, CustomResourceOptions? opts = null)
public UpstreamSource(String name, UpstreamSourceArgs args)
public UpstreamSource(String name, UpstreamSourceArgs args, CustomResourceOptions options)
type: volcenginecc:apig:UpstreamSource
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UpstreamSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UpstreamSourceArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UpstreamSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UpstreamSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UpstreamSourceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var upstreamSourceResource = new Volcenginecc.Apig.UpstreamSource("upstreamSourceResource", new()
{
GatewayId = "string",
SourceSpec = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecArgs
{
K8SSource = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecK8SSourceArgs
{
ClusterId = "string",
ClusterType = "string",
},
NacosSource = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecNacosSourceArgs
{
AuthConfig = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecNacosSourceAuthConfigArgs
{
Basic = new Volcenginecc.Apig.Inputs.UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs
{
Password = "string",
Username = "string",
},
},
NacosId = "string",
NacosName = "string",
},
},
SourceType = "string",
Comments = "string",
IngressSettings = new Volcenginecc.Apig.Inputs.UpstreamSourceIngressSettingsArgs
{
EnableAllIngressClasses = false,
EnableAllNamespaces = false,
EnableIngress = false,
EnableIngressWithoutIngressClass = false,
IngressClasses = new[]
{
"string",
},
UpdateStatus = false,
WatchNamespaces = new[]
{
"string",
},
},
WatchNamespaces = new[]
{
"string",
},
});
example, err := apig.NewUpstreamSource(ctx, "upstreamSourceResource", &apig.UpstreamSourceArgs{
GatewayId: pulumi.String("string"),
SourceSpec: &apig.UpstreamSourceSourceSpecArgs{
K8SSource: &apig.UpstreamSourceSourceSpecK8SSourceArgs{
ClusterId: pulumi.String("string"),
ClusterType: pulumi.String("string"),
},
NacosSource: &apig.UpstreamSourceSourceSpecNacosSourceArgs{
AuthConfig: &apig.UpstreamSourceSourceSpecNacosSourceAuthConfigArgs{
Basic: &apig.UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
NacosId: pulumi.String("string"),
NacosName: pulumi.String("string"),
},
},
SourceType: pulumi.String("string"),
Comments: pulumi.String("string"),
IngressSettings: &apig.UpstreamSourceIngressSettingsArgs{
EnableAllIngressClasses: pulumi.Bool(false),
EnableAllNamespaces: pulumi.Bool(false),
EnableIngress: pulumi.Bool(false),
EnableIngressWithoutIngressClass: pulumi.Bool(false),
IngressClasses: pulumi.StringArray{
pulumi.String("string"),
},
UpdateStatus: pulumi.Bool(false),
WatchNamespaces: pulumi.StringArray{
pulumi.String("string"),
},
},
WatchNamespaces: pulumi.StringArray{
pulumi.String("string"),
},
})
var upstreamSourceResource = new UpstreamSource("upstreamSourceResource", UpstreamSourceArgs.builder()
.gatewayId("string")
.sourceSpec(UpstreamSourceSourceSpecArgs.builder()
.k8SSource(UpstreamSourceSourceSpecK8SSourceArgs.builder()
.clusterId("string")
.clusterType("string")
.build())
.nacosSource(UpstreamSourceSourceSpecNacosSourceArgs.builder()
.authConfig(UpstreamSourceSourceSpecNacosSourceAuthConfigArgs.builder()
.basic(UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs.builder()
.password("string")
.username("string")
.build())
.build())
.nacosId("string")
.nacosName("string")
.build())
.build())
.sourceType("string")
.comments("string")
.ingressSettings(UpstreamSourceIngressSettingsArgs.builder()
.enableAllIngressClasses(false)
.enableAllNamespaces(false)
.enableIngress(false)
.enableIngressWithoutIngressClass(false)
.ingressClasses("string")
.updateStatus(false)
.watchNamespaces("string")
.build())
.watchNamespaces("string")
.build());
upstream_source_resource = volcenginecc.apig.UpstreamSource("upstreamSourceResource",
gateway_id="string",
source_spec={
"k8_s_source": {
"cluster_id": "string",
"cluster_type": "string",
},
"nacos_source": {
"auth_config": {
"basic": {
"password": "string",
"username": "string",
},
},
"nacos_id": "string",
"nacos_name": "string",
},
},
source_type="string",
comments="string",
ingress_settings={
"enable_all_ingress_classes": False,
"enable_all_namespaces": False,
"enable_ingress": False,
"enable_ingress_without_ingress_class": False,
"ingress_classes": ["string"],
"update_status": False,
"watch_namespaces": ["string"],
},
watch_namespaces=["string"])
const upstreamSourceResource = new volcenginecc.apig.UpstreamSource("upstreamSourceResource", {
gatewayId: "string",
sourceSpec: {
k8SSource: {
clusterId: "string",
clusterType: "string",
},
nacosSource: {
authConfig: {
basic: {
password: "string",
username: "string",
},
},
nacosId: "string",
nacosName: "string",
},
},
sourceType: "string",
comments: "string",
ingressSettings: {
enableAllIngressClasses: false,
enableAllNamespaces: false,
enableIngress: false,
enableIngressWithoutIngressClass: false,
ingressClasses: ["string"],
updateStatus: false,
watchNamespaces: ["string"],
},
watchNamespaces: ["string"],
});
type: volcenginecc:apig:UpstreamSource
properties:
comments: string
gatewayId: string
ingressSettings:
enableAllIngressClasses: false
enableAllNamespaces: false
enableIngress: false
enableIngressWithoutIngressClass: false
ingressClasses:
- string
updateStatus: false
watchNamespaces:
- string
sourceSpec:
k8SSource:
clusterId: string
clusterType: string
nacosSource:
authConfig:
basic:
password: string
username: string
nacosId: string
nacosName: string
sourceType: string
watchNamespaces:
- string
UpstreamSource Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The UpstreamSource resource accepts the following input properties:
- Gateway
Id string - 网关实例ID。
- Source
Spec Volcengine.Upstream Source Source Spec - Upstream来源配置。
- Source
Type string - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- Comments string
- 备注,长度限制为0~253个字符。
- Ingress
Settings Volcengine.Upstream Source Ingress Settings - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- Watch
Namespaces List<string> - 指定命名空间。
- Gateway
Id string - 网关实例ID。
- Source
Spec UpstreamSource Source Spec Args - Upstream来源配置。
- Source
Type string - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- Comments string
- 备注,长度限制为0~253个字符。
- Ingress
Settings UpstreamSource Ingress Settings Args - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- Watch
Namespaces []string - 指定命名空间。
- gateway
Id String - 网关实例ID。
- source
Spec UpstreamSource Source Spec - Upstream来源配置。
- source
Type String - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- comments String
- 备注,长度限制为0~253个字符。
- ingress
Settings UpstreamSource Ingress Settings - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- watch
Namespaces List<String> - 指定命名空间。
- gateway
Id string - 网关实例ID。
- source
Spec UpstreamSource Source Spec - Upstream来源配置。
- source
Type string - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- comments string
- 备注,长度限制为0~253个字符。
- ingress
Settings UpstreamSource Ingress Settings - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- watch
Namespaces string[] - 指定命名空间。
- gateway_
id str - 网关实例ID。
- source_
spec UpstreamSource Source Spec Args - Upstream来源配置。
- source_
type str - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- comments str
- 备注,长度限制为0~253个字符。
- ingress_
settings UpstreamSource Ingress Settings Args - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- watch_
namespaces Sequence[str] - 指定命名空间。
- gateway
Id String - 网关实例ID。
- source
Spec Property Map - Upstream来源配置。
- source
Type String - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- comments String
- 备注,长度限制为0~253个字符。
- ingress
Settings Property Map - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- watch
Namespaces List<String> - 指定命名空间。
Outputs
All input properties are implicitly available as output properties. Additionally, the UpstreamSource resource produces the following output properties:
- Created
Time string - 创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- Status
Message string - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- Updated
Time string - 更新时间。
- Upstream
Source stringId - Upstream来源ID。
- Created
Time string - 创建时间。
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- Status
Message string - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- Updated
Time string - 更新时间。
- Upstream
Source stringId - Upstream来源ID。
- created
Time String - 创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status
Message String - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated
Time String - 更新时间。
- upstream
Source StringId - Upstream来源ID。
- created
Time string - 创建时间。
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status
Message string - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated
Time string - 更新时间。
- upstream
Source stringId - Upstream来源ID。
- created_
time str - 创建时间。
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status_
message str - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated_
time str - 更新时间。
- upstream_
source_ strid - Upstream来源ID。
- created
Time String - 创建时间。
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status
Message String - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated
Time String - 更新时间。
- upstream
Source StringId - Upstream来源ID。
Look up Existing UpstreamSource Resource
Get an existing UpstreamSource resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UpstreamSourceState, opts?: CustomResourceOptions): UpstreamSource@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comments: Optional[str] = None,
created_time: Optional[str] = None,
gateway_id: Optional[str] = None,
ingress_settings: Optional[UpstreamSourceIngressSettingsArgs] = None,
source_spec: Optional[UpstreamSourceSourceSpecArgs] = None,
source_type: Optional[str] = None,
status: Optional[str] = None,
status_message: Optional[str] = None,
updated_time: Optional[str] = None,
upstream_source_id: Optional[str] = None,
watch_namespaces: Optional[Sequence[str]] = None) -> UpstreamSourcefunc GetUpstreamSource(ctx *Context, name string, id IDInput, state *UpstreamSourceState, opts ...ResourceOption) (*UpstreamSource, error)public static UpstreamSource Get(string name, Input<string> id, UpstreamSourceState? state, CustomResourceOptions? opts = null)public static UpstreamSource get(String name, Output<String> id, UpstreamSourceState state, CustomResourceOptions options)resources: _: type: volcenginecc:apig:UpstreamSource get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comments string
- 备注,长度限制为0~253个字符。
- Created
Time string - 创建时间。
- Gateway
Id string - 网关实例ID。
- Ingress
Settings Volcengine.Upstream Source Ingress Settings - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- Source
Spec Volcengine.Upstream Source Source Spec - Upstream来源配置。
- Source
Type string - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- Status string
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- Status
Message string - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- Updated
Time string - 更新时间。
- Upstream
Source stringId - Upstream来源ID。
- Watch
Namespaces List<string> - 指定命名空间。
- Comments string
- 备注,长度限制为0~253个字符。
- Created
Time string - 创建时间。
- Gateway
Id string - 网关实例ID。
- Ingress
Settings UpstreamSource Ingress Settings Args - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- Source
Spec UpstreamSource Source Spec Args - Upstream来源配置。
- Source
Type string - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- Status string
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- Status
Message string - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- Updated
Time string - 更新时间。
- Upstream
Source stringId - Upstream来源ID。
- Watch
Namespaces []string - 指定命名空间。
- comments String
- 备注,长度限制为0~253个字符。
- created
Time String - 创建时间。
- gateway
Id String - 网关实例ID。
- ingress
Settings UpstreamSource Ingress Settings - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- source
Spec UpstreamSource Source Spec - Upstream来源配置。
- source
Type String - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- status String
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status
Message String - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated
Time String - 更新时间。
- upstream
Source StringId - Upstream来源ID。
- watch
Namespaces List<String> - 指定命名空间。
- comments string
- 备注,长度限制为0~253个字符。
- created
Time string - 创建时间。
- gateway
Id string - 网关实例ID。
- ingress
Settings UpstreamSource Ingress Settings - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- source
Spec UpstreamSource Source Spec - Upstream来源配置。
- source
Type string - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- status string
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status
Message string - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated
Time string - 更新时间。
- upstream
Source stringId - Upstream来源ID。
- watch
Namespaces string[] - 指定命名空间。
- comments str
- 备注,长度限制为0~253个字符。
- created_
time str - 创建时间。
- gateway_
id str - 网关实例ID。
- ingress_
settings UpstreamSource Ingress Settings Args - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- source_
spec UpstreamSource Source Spec Args - Upstream来源配置。
- source_
type str - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- status str
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status_
message str - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated_
time str - 更新时间。
- upstream_
source_ strid - Upstream来源ID。
- watch_
namespaces Sequence[str] - 指定命名空间。
- comments String
- 备注,长度限制为0~253个字符。
- created
Time String - 创建时间。
- gateway
Id String - 网关实例ID。
- ingress
Settings Property Map - 路由同步。开启后,API网关会自动监听Ingress资源的变化,并将Ingress资源转义为服务,域名,Upstream等资源合并至当前网关。由Ingress转义的资源不支持在控制台操作。仅支持容器集群来源类型。
- source
Spec Property Map - Upstream来源配置。
- source
Type String - Upstream来源类型,取值:K8S:容器集群。Nacos:注册中心。
- status String
- 导入状态,取值:Syncing:导入中。SyncedSucceed:导入成功。SyncedFailed:导入失败。
- status
Message String - 导入状态信息,取值:ConnectionFailed:Nacos集群无法连接。AuthenticationFailed:认证失败。PermissionFailed:Nacos集群无法连接。
- updated
Time String - 更新时间。
- upstream
Source StringId - Upstream来源ID。
- watch
Namespaces List<String> - 指定命名空间。
Supporting Types
UpstreamSourceIngressSettings, UpstreamSourceIngressSettingsArgs
- Enable
All boolIngress Classes - 是否启用所有Ingress类。
- Enable
All boolNamespaces - 是否全部命名空间。
- Enable
Ingress bool - 是否开启。
- Enable
Ingress boolWithout Ingress Class - 是否监听IngressClass为空的资源。
- Ingress
Classes List<string> - 指定IngressClass。
- Update
Status bool - 流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
- Watch
Namespaces List<string> - 指定命名空间。
- Enable
All boolIngress Classes - 是否启用所有Ingress类。
- Enable
All boolNamespaces - 是否全部命名空间。
- Enable
Ingress bool - 是否开启。
- Enable
Ingress boolWithout Ingress Class - 是否监听IngressClass为空的资源。
- Ingress
Classes []string - 指定IngressClass。
- Update
Status bool - 流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
- Watch
Namespaces []string - 指定命名空间。
- enable
All BooleanIngress Classes - 是否启用所有Ingress类。
- enable
All BooleanNamespaces - 是否全部命名空间。
- enable
Ingress Boolean - 是否开启。
- enable
Ingress BooleanWithout Ingress Class - 是否监听IngressClass为空的资源。
- ingress
Classes List<String> - 指定IngressClass。
- update
Status Boolean - 流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
- watch
Namespaces List<String> - 指定命名空间。
- enable
All booleanIngress Classes - 是否启用所有Ingress类。
- enable
All booleanNamespaces - 是否全部命名空间。
- enable
Ingress boolean - 是否开启。
- enable
Ingress booleanWithout Ingress Class - 是否监听IngressClass为空的资源。
- ingress
Classes string[] - 指定IngressClass。
- update
Status boolean - 流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
- watch
Namespaces string[] - 指定命名空间。
- enable_
all_ boolingress_ classes - 是否启用所有Ingress类。
- enable_
all_ boolnamespaces - 是否全部命名空间。
- enable_
ingress bool - 是否开启。
- enable_
ingress_ boolwithout_ ingress_ class - 是否监听IngressClass为空的资源。
- ingress_
classes Sequence[str] - 指定IngressClass。
- update_
status bool - 流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
- watch_
namespaces Sequence[str] - 指定命名空间。
- enable
All BooleanIngress Classes - 是否启用所有Ingress类。
- enable
All BooleanNamespaces - 是否全部命名空间。
- enable
Ingress Boolean - 是否开启。
- enable
Ingress BooleanWithout Ingress Class - 是否监听IngressClass为空的资源。
- ingress
Classes List<String> - 指定IngressClass。
- update
Status Boolean - 流量入口切换。开启后,当前集群Ingress中Status的IP地址会被修改为当前网关的IP地址。
- watch
Namespaces List<String> - 指定命名空间。
UpstreamSourceSourceSpec, UpstreamSourceSourceSpecArgs
- k8SSource Property Map
- 容器集群来源。
- nacos
Source Property Map - 注册中心来源。
UpstreamSourceSourceSpecK8SSource, UpstreamSourceSourceSpecK8SSourceArgs
- Cluster
Id string - 集群ID。
- Cluster
Type string - 集群类型。
- Cluster
Id string - 集群ID。
- Cluster
Type string - 集群类型。
- cluster
Id String - 集群ID。
- cluster
Type String - 集群类型。
- cluster
Id string - 集群ID。
- cluster
Type string - 集群类型。
- cluster_
id str - 集群ID。
- cluster_
type str - 集群类型。
- cluster
Id String - 集群ID。
- cluster
Type String - 集群类型。
UpstreamSourceSourceSpecNacosSource, UpstreamSourceSourceSpecNacosSourceArgs
- Auth
Config Volcengine.Upstream Source Source Spec Nacos Source Auth Config - 认证配置。
- Nacos
Id string - Nacos ID。
- Nacos
Name string - Nacos名称。
- Auth
Config UpstreamSource Source Spec Nacos Source Auth Config - 认证配置。
- Nacos
Id string - Nacos ID。
- Nacos
Name string - Nacos名称。
- auth
Config UpstreamSource Source Spec Nacos Source Auth Config - 认证配置。
- nacos
Id String - Nacos ID。
- nacos
Name String - Nacos名称。
- auth
Config UpstreamSource Source Spec Nacos Source Auth Config - 认证配置。
- nacos
Id string - Nacos ID。
- nacos
Name string - Nacos名称。
- auth_
config UpstreamSource Source Spec Nacos Source Auth Config - 认证配置。
- nacos_
id str - Nacos ID。
- nacos_
name str - Nacos名称。
- auth
Config Property Map - 认证配置。
- nacos
Id String - Nacos ID。
- nacos
Name String - Nacos名称。
UpstreamSourceSourceSpecNacosSourceAuthConfig, UpstreamSourceSourceSpecNacosSourceAuthConfigArgs
- basic Property Map
- Basic认证。
UpstreamSourceSourceSpecNacosSourceAuthConfigBasic, UpstreamSourceSourceSpecNacosSourceAuthConfigBasicArgs
Import
$ pulumi import volcenginecc:apig/upstreamSource:UpstreamSource example "upstream_source_id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcenginecc volcengine/pulumi-volcenginecc
- License
- MPL-2.0
- Notes
- This Pulumi package is based on the
volcengineccTerraform Provider.
