K8sCluster

Provides an EDAS K8s cluster resource. For information about EDAS K8s Cluster and how to use it, seeWhat is EDAS K8s Cluster.

NOTE: Available in 1.93.0+

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.edas.K8sCluster;
import com.pulumi.alicloud.edas.K8sClusterArgs;
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) {
var default_ = new K8sCluster("default", K8sClusterArgs.builder()
.csClusterId("xxxx-xxx-xxx")
.build());
}
}

Import

EDAS cluster can be imported using the id, e.g.

$ pulumi import alicloud:edas/k8sCluster:K8sCluster cluster cluster_id

Properties

Link copied to clipboard

The import status of cluster: 1: success. 2: failed. 3: importing. 4: deleted.

Link copied to clipboard
val clusterName: Output<String>

The name of the cluster that you want to create.

Link copied to clipboard
val clusterType: Output<Int>

The type of the cluster that you want to create. Valid values only: 5: K8s cluster.

Link copied to clipboard
val csClusterId: Output<String>

The ID of the alicloud container service kubernetes cluster that you want to import.

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

The ID of the namespace where you want to import. You can call the ListUserDefineRegion operation to query the namespace ID.

Link copied to clipboard
val networkMode: Output<Int>

The network type of the cluster that you want to create. Valid values: 1: classic network. 2: VPC.

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

The ID of the Virtual Private Cloud (VPC) for the cluster.