Skip to content

ServiceMeshProps

Properties for defining a ServiceMesh.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-asm-servicemesh

Initializer

import ros_cdk_asm
ros_cdk_asm.ServiceMeshProps(
  vpc_id: typing.Union[str, IResolvable],
  v_switches: typing.Union[typing.List[typing.Any], IResolvable],
  api_server_public_eip: typing.Union[bool, IResolvable] = None,
  audit_project: typing.Union[str, IResolvable] = None,
  customized_zipkin: typing.Union[bool, IResolvable] = None,
  enable_audit: typing.Union[bool, IResolvable] = None,
  include_ip_ranges: typing.Union[str, IResolvable] = None,
  istio_version: typing.Union[str, IResolvable] = None,
  locality_load_balancing: typing.Union[bool, IResolvable] = None,
  name: typing.Union[str, IResolvable] = None,
  opa: typing.Union[IResolvable, OPAProperty] = None,
  outbound_traffic_policy: typing.Union[str, IResolvable] = None,
  pilot_public_eip: typing.Union[bool, IResolvable] = None,
  proxy: typing.Union[IResolvable, ProxyProperty] = None,
  telemetry: typing.Union[bool, IResolvable] = None,
  trace_sampling: typing.Union[typing.Union[int, float], IResolvable] = None,
  tracing: typing.Union[bool, IResolvable] = None
)

Properties

Name Type Description
vpc_id typing.Union[str, ros_cdk_core.IResolvable] Property vpcId: The ID of the virtual private cloud (VPC).
v_switches typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable] Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"].
api_server_public_eip typing.Union[bool, ros_cdk_core.IResolvable] Property apiServerPublicEip: Specifies whether to expose the API server to the Internet.
audit_project typing.Union[str, ros_cdk_core.IResolvable] Property auditProject: The name of the Log Service project that is used for mesh audit.
customized_zipkin typing.Union[bool, ros_cdk_core.IResolvable] Property customizedZipkin: Specifies whether to use a user-created Zipkin system.
enable_audit typing.Union[bool, ros_cdk_core.IResolvable] Property enableAudit: Specifies whether to enable the mesh audit feature.
include_ip_ranges typing.Union[str, ros_cdk_core.IResolvable] Property includeIpRanges: The Classless Inter-Domain Routing (CIDR) block in the ASM instance that are denied to access external services.
istio_version typing.Union[str, ros_cdk_core.IResolvable] Property istioVersion: The Istio version of the ASM instance.
locality_load_balancing typing.Union[bool, ros_cdk_core.IResolvable] Property localityLoadBalancing: Specifies whether to route traffic to the nearest instance.
name typing.Union[str, ros_cdk_core.IResolvable] Property name: The name of the ASM instance.
opa typing.Union[ros_cdk_core.IResolvable, OPAProperty] Property opa: OPA settings.
outbound_traffic_policy typing.Union[str, ros_cdk_core.IResolvable] Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.
pilot_public_eip typing.Union[bool, ros_cdk_core.IResolvable] Property pilotPublicEip: Specifies whether to expose Istio Pilot to the Internet.
proxy typing.Union[ros_cdk_core.IResolvable, ProxyProperty] Property proxy: Proxy settings.
telemetry typing.Union[bool, ros_cdk_core.IResolvable] Property telemetry: Specifies whether to enable Prometheus monitoring.
trace_sampling typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable] Property traceSampling: The sampling percentage of tracing.
tracing typing.Union[bool, ros_cdk_core.IResolvable] Property tracing: Specifies whether to enable the tracing feature.

vpc_idRequired

vpc_id: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property vpcId: The ID of the virtual private cloud (VPC).


v_switchesRequired

v_switches: typing.Union[typing.List[typing.Any], IResolvable]
  • Type: typing.Union[typing.List[typing.Any], ros_cdk_core.IResolvable]

Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"].


api_server_public_eipOptional

api_server_public_eip: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property apiServerPublicEip: Specifies whether to expose the API server to the Internet.

Valid values: true and false. Default value: false. If you do not set this parameter, the API server of clusters added to the ASM instance cannot be accessed from the Internet.


audit_projectOptional

audit_project: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property auditProject: The name of the Log Service project that is used for mesh audit.

Default value: mesh-log-{meshId}.


customized_zipkinOptional

customized_zipkin: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property customizedZipkin: Specifies whether to use a user-created Zipkin system.


enable_auditOptional

enable_audit: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property enableAudit: Specifies whether to enable the mesh audit feature.

To enable this feature, make sure that you have activated Alibaba Cloud Log Service. Valid values: true and false. Default value: false.


include_ip_rangesOptional

include_ip_ranges: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property includeIpRanges: The Classless Inter-Domain Routing (CIDR) block in the ASM instance that are denied to access external services.


istio_versionOptional

istio_version: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property istioVersion: The Istio version of the ASM instance.


locality_load_balancingOptional

locality_load_balancing: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property localityLoadBalancing: Specifies whether to route traffic to the nearest instance.

Valid values: true and false. Default value: false.


nameOptional

name: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property name: The name of the ASM instance.


opaOptional

opa: typing.Union[IResolvable, OPAProperty]
  • Type: typing.Union[ros_cdk_core.IResolvable, OPAProperty]

Property opa: OPA settings.


outbound_traffic_policyOptional

outbound_traffic_policy: typing.Union[str, IResolvable]
  • Type: typing.Union[str, ros_cdk_core.IResolvable]

Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.


pilot_public_eipOptional

pilot_public_eip: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property pilotPublicEip: Specifies whether to expose Istio Pilot to the Internet.

Valid values: true and false. Default value: false. If you do not set this parameter, only clusters in the same VPC as the ASM instance can access Istio Pilot of the instance.


proxyOptional

proxy: typing.Union[IResolvable, ProxyProperty]

Property proxy: Proxy settings.


telemetryOptional

telemetry: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property telemetry: Specifies whether to enable Prometheus monitoring.

We recommend that you use Application Real-Time Monitoring Service (ARMS).


trace_samplingOptional

trace_sampling: typing.Union[typing.Union[int, float], IResolvable]
  • Type: typing.Union[typing.Union[int, float], ros_cdk_core.IResolvable]

Property traceSampling: The sampling percentage of tracing.


tracingOptional

tracing: typing.Union[bool, IResolvable]
  • Type: typing.Union[bool, ros_cdk_core.IResolvable]

Property tracing: Specifies whether to enable the tracing feature.

To enable this feature, make sure that you have activated Alibaba Cloud Tracing Analysis. Valid values: true and false. Default value: false.