Skip to content

ServiceMeshProps

Properties for defining a ServiceMesh.

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

Initializer

import com.aliyun.ros.cdk.asm.ServiceMeshProps;
ServiceMeshProps.builder()
    .vpcId(java.lang.String)
    .vpcId(IResolvable)
    .vSwitches(java.util.List<java.lang.Object>)
    .vSwitches(IResolvable)
//  .apiServerPublicEip(java.lang.Boolean)
//  .apiServerPublicEip(IResolvable)
//  .auditProject(java.lang.String)
//  .auditProject(IResolvable)
//  .customizedZipkin(java.lang.Boolean)
//  .customizedZipkin(IResolvable)
//  .enableAudit(java.lang.Boolean)
//  .enableAudit(IResolvable)
//  .includeIpRanges(java.lang.String)
//  .includeIpRanges(IResolvable)
//  .istioVersion(java.lang.String)
//  .istioVersion(IResolvable)
//  .localityLoadBalancing(java.lang.Boolean)
//  .localityLoadBalancing(IResolvable)
//  .name(java.lang.String)
//  .name(IResolvable)
//  .opa(IResolvable)
//  .opa(OPAProperty)
//  .outboundTrafficPolicy(java.lang.String)
//  .outboundTrafficPolicy(IResolvable)
//  .pilotPublicEip(java.lang.Boolean)
//  .pilotPublicEip(IResolvable)
//  .proxy(IResolvable)
//  .proxy(ProxyProperty)
//  .telemetry(java.lang.Boolean)
//  .telemetry(IResolvable)
//  .traceSampling(java.lang.Number)
//  .traceSampling(IResolvable)
//  .tracing(java.lang.Boolean)
//  .tracing(IResolvable)
    .build();

Properties

Name Type Description
vpcId java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property vpcId: The ID of the virtual private cloud (VPC).
vSwitches java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property vSwitches: The ID of the vSwitch, eg: ["vsw-xzegf5dndkbf4m6eg****"].
apiServerPublicEip java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property apiServerPublicEip: Specifies whether to expose the API server to the Internet.
auditProject java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property auditProject: The name of the Log Service project that is used for mesh audit.
customizedZipkin java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property customizedZipkin: Specifies whether to use a user-created Zipkin system.
enableAudit java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property enableAudit: Specifies whether to enable the mesh audit feature.
includeIpRanges java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property includeIpRanges: The Classless Inter-Domain Routing (CIDR) block in the ASM instance that are denied to access external services.
istioVersion java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property istioVersion: The Istio version of the ASM instance.
localityLoadBalancing java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property localityLoadBalancing: Specifies whether to route traffic to the nearest instance.
name java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property name: The name of the ASM instance.
opa com.aliyun.ros.cdk.core.IResolvable OR OPAProperty Property opa: OPA settings.
outboundTrafficPolicy java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property outboundTrafficPolicy: The outbound traffic policy of the ASM instance.
pilotPublicEip java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property pilotPublicEip: Specifies whether to expose Istio Pilot to the Internet.
proxy com.aliyun.ros.cdk.core.IResolvable OR ProxyProperty Property proxy: Proxy settings.
telemetry java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property telemetry: Specifies whether to enable Prometheus monitoring.
traceSampling java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable Property traceSampling: The sampling percentage of tracing.
tracing java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property tracing: Specifies whether to enable the tracing feature.

vpcIdRequired

public java.lang.Object getVpcId();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


vSwitchesRequired

public java.lang.Object getVSwitches();
  • Type: java.util.List OR com.aliyun.ros.cdk.core.IResolvable

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


apiServerPublicEipOptional

public java.lang.Object getApiServerPublicEip();
  • Type: java.lang.Boolean OR com.aliyun.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.


auditProjectOptional

public java.lang.Object getAuditProject();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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

Default value: mesh-log-{meshId}.


customizedZipkinOptional

public java.lang.Object getCustomizedZipkin();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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


enableAuditOptional

public java.lang.Object getEnableAudit();
  • Type: java.lang.Boolean OR com.aliyun.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.


includeIpRangesOptional

public java.lang.Object getIncludeIpRanges();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


istioVersionOptional

public java.lang.Object getIstioVersion();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property istioVersion: The Istio version of the ASM instance.


localityLoadBalancingOptional

public java.lang.Object getLocalityLoadBalancing();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

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

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


nameOptional

public java.lang.Object getName();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property name: The name of the ASM instance.


opaOptional

public java.lang.Object getOpa();
  • Type: com.aliyun.ros.cdk.core.IResolvable OR OPAProperty

Property opa: OPA settings.


outboundTrafficPolicyOptional

public java.lang.Object getOutboundTrafficPolicy();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

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


pilotPublicEipOptional

public java.lang.Object getPilotPublicEip();
  • Type: java.lang.Boolean OR com.aliyun.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

public java.lang.Object getProxy();

Property proxy: Proxy settings.


telemetryOptional

public java.lang.Object getTelemetry();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property telemetry: Specifies whether to enable Prometheus monitoring.

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


traceSamplingOptional

public java.lang.Object getTraceSampling();
  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

Property traceSampling: The sampling percentage of tracing.


tracingOptional

public java.lang.Object getTracing();
  • Type: java.lang.Boolean OR com.aliyun.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.