ServiceMesh

class ServiceMesh : KotlinCustomResource

Provides a Service Mesh Service Mesh resource. For information about Service Mesh Service Mesh and how to use it, see What is Service Mesh.

NOTE: Available since v1.138.0.

Example Usage

creating a standard cluster

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.servicemesh.ServicemeshFunctions;
import com.pulumi.alicloud.servicemesh.inputs.GetVersionsArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.servicemesh.ServiceMesh;
import com.pulumi.alicloud.servicemesh.ServiceMeshArgs;
import com.pulumi.alicloud.servicemesh.inputs.ServiceMeshNetworkArgs;
import com.pulumi.alicloud.servicemesh.inputs.ServiceMeshLoadBalancerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("tf_example");
final var defaultZones = AlicloudFunctions.getZones(GetZonesArgs.builder()
.availableResourceCreation("VSwitch")
.build());
final var defaultVersions = ServicemeshFunctions.getVersions(GetVersionsArgs.builder()
.edition("Default")
.build());
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("10.0.0.0/8")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vswitchName(name)
.cidrBlock("10.1.0.0/16")
.vpcId(defaultNetwork.id())
.zoneId(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
.build());
var defaultServiceMesh = new ServiceMesh("defaultServiceMesh", ServiceMeshArgs.builder()
.serviceMeshName(name)
.edition("Default")
.version(defaultVersions.applyValue(getVersionsResult -> getVersionsResult.versions()[0].version()))
.clusterSpec("standard")
.network(ServiceMeshNetworkArgs.builder()
.vpcId(defaultNetwork.id())
.vswitcheList(defaultSwitch.id())
.build())
.loadBalancer(ServiceMeshLoadBalancerArgs.builder()
.pilotPublicEip(false)
.apiServerPublicEip(false)
.build())
.build());
}
}

Import

Service Mesh Service Mesh can be imported using the id, e.g.

$ pulumi import alicloud:servicemesh/serviceMesh:ServiceMesh example <id>

Properties

Link copied to clipboard
val clusterIds: Output<List<String>>

The array of the cluster ids.

Link copied to clipboard
val clusterSpec: Output<String>

The service mesh instance specification. Valid values: standard,enterprise,ultimate. Default to standard.

Link copied to clipboard
val edition: Output<String>

The type of the resource. Valid values: Default and Pro. Default: the standard. Pro: the Pro version.

Link copied to clipboard

The configurations of additional features for the ASM instance. See extra_configuration below.

Link copied to clipboard
val force: Output<Boolean>?

This parameter is used for resource destroy. Default value is false.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

The configuration of the Load Balancer. See load_balancer below.

Link copied to clipboard

The configuration of the Service grid. See mesh_config below.

Link copied to clipboard

The network configuration of the Service grid. See network below.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val serviceMeshName: Output<String>

The name of the resource.

Link copied to clipboard
val status: Output<String>

The status of the resource. Valid values: running or initial.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<String>

The version of the resource. you can look up the version using alicloud.servicemesh.getVersions. Note: The version supports updating from v1.170.0, the relevant version can be obtained via istio_operator_version in alicloud.servicemesh.getServiceMeshes.