qovery.Cluster
Explore with Pulumi AI
# qovery.Cluster (Resource)
Provides a Qovery cluster resource. This can be used to create and manage Qovery cluster.
Example
Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.qovery.Cluster;
import com.pulumi.qovery.ClusterArgs;
import com.pulumi.qovery.inputs.ClusterFeaturesArgs;
import com.pulumi.qovery.inputs.ClusterRoutingTableArgs;
import static com.pulumi.codegen.internal.Serialization.*;
import com.pulumi.resources.CustomResourceOptions;
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 myCluster = new Cluster("myCluster", ClusterArgs.builder()
            .organizationId(qovery_organization.my_organization().id())
            .credentialsId(qovery_aws_credentials.my_aws_creds().id())
            .cloudProvider("AWS")
            .region("eu-west-3")
            .instanceType("T3A_MEDIUM")
            .description("My cluster description")
            .minRunningNodes(3)
            .maxRunningNodes(10)
            .features(ClusterFeaturesArgs.builder()
                .vpc_subnet("10.0.0.0/16")
                .build())
            .routingTables(ClusterRoutingTableArgs.builder()
                .description("RDS database peering")
                .destination("172.30.0.0/16")
                .target("pcx-06f8f5512c91e389c")
                .build())
            .advancedSettingsJson(serializeJson(
                jsonObject(
                    jsonProperty("aws.vpc.flow_logs_retention_days", 100),
                    jsonProperty("aws.vpc.enable_s3_flow_logs", true)
                )))
            .state("DEPLOYED")
            .build(), CustomResourceOptions.builder()
                .dependsOn(                
                    qovery_organization.my_organization(),
                    qovery_aws_credentials.my_aws_creds())
                .build());
    }
}
resources:
  myCluster:
    type: qovery:Cluster
    properties:
      # Required
      organizationId: ${qovery_organization.my_organization.id}
      credentialsId: ${qovery_aws_credentials.my_aws_creds.id}
      cloudProvider: AWS
      region: eu-west-3
      instanceType: T3A_MEDIUM
      # Optional
      description: My cluster description
      minRunningNodes: 3
      maxRunningNodes: 10
      features:
        vpc_subnet: 10.0.0.0/16
      routingTables:
        - description: RDS database peering
          destination: 172.30.0.0/16
          target: pcx-06f8f5512c91e389c
      advancedSettingsJson:
        fn::toJSON:
          aws.vpc.flow_logs_retention_days: 100
          aws.vpc.enable_s3_flow_logs: true
      state: DEPLOYED
    options:
      dependson:
        - ${qovery_organization.my_organization}
        - ${qovery_aws_credentials.my_aws_creds}
You can find complete examples within these repositories:
- Deploy an Application and Database within 3 environments
Create Cluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Cluster(name: string, args: ClusterArgs, opts?: CustomResourceOptions);@overload
def Cluster(resource_name: str,
            args: ClusterArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Cluster(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            organization_id: Optional[str] = None,
            cloud_provider: Optional[str] = None,
            credentials_id: Optional[str] = None,
            region: Optional[str] = None,
            max_running_nodes: Optional[int] = None,
            features: Optional[ClusterFeaturesArgs] = None,
            instance_type: Optional[str] = None,
            kubernetes_mode: Optional[str] = None,
            advanced_settings_json: Optional[str] = None,
            min_running_nodes: Optional[int] = None,
            name: Optional[str] = None,
            disk_size: Optional[int] = None,
            production: Optional[bool] = None,
            description: Optional[str] = None,
            routing_tables: Optional[Sequence[ClusterRoutingTableArgs]] = None,
            state: Optional[str] = None)func NewCluster(ctx *Context, name string, args ClusterArgs, opts ...ResourceOption) (*Cluster, error)public Cluster(string name, ClusterArgs args, CustomResourceOptions? opts = null)
public Cluster(String name, ClusterArgs args)
public Cluster(String name, ClusterArgs args, CustomResourceOptions options)
type: qovery:Cluster
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 ClusterArgs
- 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 ClusterArgs
- 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 ClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterArgs
- 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 clusterResource = new Qovery.Cluster("clusterResource", new()
{
    OrganizationId = "string",
    CloudProvider = "string",
    CredentialsId = "string",
    Region = "string",
    MaxRunningNodes = 0,
    Features = new Qovery.Inputs.ClusterFeaturesArgs
    {
        ExistingVpc = new Qovery.Inputs.ClusterFeaturesExistingVpcArgs
        {
            EksSubnetsZoneAIds = new[]
            {
                "string",
            },
            EksSubnetsZoneCIds = new[]
            {
                "string",
            },
            EksSubnetsZoneBIds = new[]
            {
                "string",
            },
            AwsVpcEksId = "string",
            DocumentdbSubnetsZoneCIds = new[]
            {
                "string",
            },
            DocumentdbSubnetsZoneBIds = new[]
            {
                "string",
            },
            DocumentdbSubnetsZoneAIds = new[]
            {
                "string",
            },
            ElasticacheSubnetsZoneAIds = new[]
            {
                "string",
            },
            ElasticacheSubnetsZoneBIds = new[]
            {
                "string",
            },
            ElasticacheSubnetsZoneCIds = new[]
            {
                "string",
            },
            RdsSubnetsZoneAIds = new[]
            {
                "string",
            },
            RdsSubnetsZoneBIds = new[]
            {
                "string",
            },
            RdsSubnetsZoneCIds = new[]
            {
                "string",
            },
        },
        Karpenter = new Qovery.Inputs.ClusterFeaturesKarpenterArgs
        {
            DefaultServiceArchitecture = "string",
            DiskSizeInGib = 0,
            SpotEnabled = false,
        },
        StaticIp = false,
        VpcSubnet = "string",
    },
    InstanceType = "string",
    KubernetesMode = "string",
    AdvancedSettingsJson = "string",
    MinRunningNodes = 0,
    Name = "string",
    DiskSize = 0,
    Production = false,
    Description = "string",
    RoutingTables = new[]
    {
        new Qovery.Inputs.ClusterRoutingTableArgs
        {
            Description = "string",
            Destination = "string",
            Target = "string",
        },
    },
    State = "string",
});
example, err := qovery.NewCluster(ctx, "clusterResource", &qovery.ClusterArgs{
	OrganizationId:  pulumi.String("string"),
	CloudProvider:   pulumi.String("string"),
	CredentialsId:   pulumi.String("string"),
	Region:          pulumi.String("string"),
	MaxRunningNodes: pulumi.Int(0),
	Features: &qovery.ClusterFeaturesArgs{
		ExistingVpc: &qovery.ClusterFeaturesExistingVpcArgs{
			EksSubnetsZoneAIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			EksSubnetsZoneCIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			EksSubnetsZoneBIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			AwsVpcEksId: pulumi.String("string"),
			DocumentdbSubnetsZoneCIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			DocumentdbSubnetsZoneBIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			DocumentdbSubnetsZoneAIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			ElasticacheSubnetsZoneAIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			ElasticacheSubnetsZoneBIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			ElasticacheSubnetsZoneCIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			RdsSubnetsZoneAIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			RdsSubnetsZoneBIds: pulumi.StringArray{
				pulumi.String("string"),
			},
			RdsSubnetsZoneCIds: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
		Karpenter: &qovery.ClusterFeaturesKarpenterArgs{
			DefaultServiceArchitecture: pulumi.String("string"),
			DiskSizeInGib:              pulumi.Int(0),
			SpotEnabled:                pulumi.Bool(false),
		},
		StaticIp:  pulumi.Bool(false),
		VpcSubnet: pulumi.String("string"),
	},
	InstanceType:         pulumi.String("string"),
	KubernetesMode:       pulumi.String("string"),
	AdvancedSettingsJson: pulumi.String("string"),
	MinRunningNodes:      pulumi.Int(0),
	Name:                 pulumi.String("string"),
	DiskSize:             pulumi.Int(0),
	Production:           pulumi.Bool(false),
	Description:          pulumi.String("string"),
	RoutingTables: qovery.ClusterRoutingTableArray{
		&qovery.ClusterRoutingTableArgs{
			Description: pulumi.String("string"),
			Destination: pulumi.String("string"),
			Target:      pulumi.String("string"),
		},
	},
	State: pulumi.String("string"),
})
var clusterResource = new Cluster("clusterResource", ClusterArgs.builder()
    .organizationId("string")
    .cloudProvider("string")
    .credentialsId("string")
    .region("string")
    .maxRunningNodes(0)
    .features(ClusterFeaturesArgs.builder()
        .existingVpc(ClusterFeaturesExistingVpcArgs.builder()
            .eksSubnetsZoneAIds("string")
            .eksSubnetsZoneCIds("string")
            .eksSubnetsZoneBIds("string")
            .awsVpcEksId("string")
            .documentdbSubnetsZoneCIds("string")
            .documentdbSubnetsZoneBIds("string")
            .documentdbSubnetsZoneAIds("string")
            .elasticacheSubnetsZoneAIds("string")
            .elasticacheSubnetsZoneBIds("string")
            .elasticacheSubnetsZoneCIds("string")
            .rdsSubnetsZoneAIds("string")
            .rdsSubnetsZoneBIds("string")
            .rdsSubnetsZoneCIds("string")
            .build())
        .karpenter(ClusterFeaturesKarpenterArgs.builder()
            .defaultServiceArchitecture("string")
            .diskSizeInGib(0)
            .spotEnabled(false)
            .build())
        .staticIp(false)
        .vpcSubnet("string")
        .build())
    .instanceType("string")
    .kubernetesMode("string")
    .advancedSettingsJson("string")
    .minRunningNodes(0)
    .name("string")
    .diskSize(0)
    .production(false)
    .description("string")
    .routingTables(ClusterRoutingTableArgs.builder()
        .description("string")
        .destination("string")
        .target("string")
        .build())
    .state("string")
    .build());
cluster_resource = qovery.Cluster("clusterResource",
    organization_id="string",
    cloud_provider="string",
    credentials_id="string",
    region="string",
    max_running_nodes=0,
    features={
        "existing_vpc": {
            "eks_subnets_zone_a_ids": ["string"],
            "eks_subnets_zone_c_ids": ["string"],
            "eks_subnets_zone_b_ids": ["string"],
            "aws_vpc_eks_id": "string",
            "documentdb_subnets_zone_c_ids": ["string"],
            "documentdb_subnets_zone_b_ids": ["string"],
            "documentdb_subnets_zone_a_ids": ["string"],
            "elasticache_subnets_zone_a_ids": ["string"],
            "elasticache_subnets_zone_b_ids": ["string"],
            "elasticache_subnets_zone_c_ids": ["string"],
            "rds_subnets_zone_a_ids": ["string"],
            "rds_subnets_zone_b_ids": ["string"],
            "rds_subnets_zone_c_ids": ["string"],
        },
        "karpenter": {
            "default_service_architecture": "string",
            "disk_size_in_gib": 0,
            "spot_enabled": False,
        },
        "static_ip": False,
        "vpc_subnet": "string",
    },
    instance_type="string",
    kubernetes_mode="string",
    advanced_settings_json="string",
    min_running_nodes=0,
    name="string",
    disk_size=0,
    production=False,
    description="string",
    routing_tables=[{
        "description": "string",
        "destination": "string",
        "target": "string",
    }],
    state="string")
const clusterResource = new qovery.Cluster("clusterResource", {
    organizationId: "string",
    cloudProvider: "string",
    credentialsId: "string",
    region: "string",
    maxRunningNodes: 0,
    features: {
        existingVpc: {
            eksSubnetsZoneAIds: ["string"],
            eksSubnetsZoneCIds: ["string"],
            eksSubnetsZoneBIds: ["string"],
            awsVpcEksId: "string",
            documentdbSubnetsZoneCIds: ["string"],
            documentdbSubnetsZoneBIds: ["string"],
            documentdbSubnetsZoneAIds: ["string"],
            elasticacheSubnetsZoneAIds: ["string"],
            elasticacheSubnetsZoneBIds: ["string"],
            elasticacheSubnetsZoneCIds: ["string"],
            rdsSubnetsZoneAIds: ["string"],
            rdsSubnetsZoneBIds: ["string"],
            rdsSubnetsZoneCIds: ["string"],
        },
        karpenter: {
            defaultServiceArchitecture: "string",
            diskSizeInGib: 0,
            spotEnabled: false,
        },
        staticIp: false,
        vpcSubnet: "string",
    },
    instanceType: "string",
    kubernetesMode: "string",
    advancedSettingsJson: "string",
    minRunningNodes: 0,
    name: "string",
    diskSize: 0,
    production: false,
    description: "string",
    routingTables: [{
        description: "string",
        destination: "string",
        target: "string",
    }],
    state: "string",
});
type: qovery:Cluster
properties:
    advancedSettingsJson: string
    cloudProvider: string
    credentialsId: string
    description: string
    diskSize: 0
    features:
        existingVpc:
            awsVpcEksId: string
            documentdbSubnetsZoneAIds:
                - string
            documentdbSubnetsZoneBIds:
                - string
            documentdbSubnetsZoneCIds:
                - string
            eksSubnetsZoneAIds:
                - string
            eksSubnetsZoneBIds:
                - string
            eksSubnetsZoneCIds:
                - string
            elasticacheSubnetsZoneAIds:
                - string
            elasticacheSubnetsZoneBIds:
                - string
            elasticacheSubnetsZoneCIds:
                - string
            rdsSubnetsZoneAIds:
                - string
            rdsSubnetsZoneBIds:
                - string
            rdsSubnetsZoneCIds:
                - string
        karpenter:
            defaultServiceArchitecture: string
            diskSizeInGib: 0
            spotEnabled: false
        staticIp: false
        vpcSubnet: string
    instanceType: string
    kubernetesMode: string
    maxRunningNodes: 0
    minRunningNodes: 0
    name: string
    organizationId: string
    production: false
    region: string
    routingTables:
        - description: string
          destination: string
          target: string
    state: string
Cluster 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 Cluster resource accepts the following input properties:
- CloudProvider string
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- CredentialsId string
- Id of the credentials.
- OrganizationId string
- Id of the organization.
- Region string
- Region of the cluster.
- AdvancedSettings stringJson 
- Advanced settings of the cluster.
- Description string
- Description of the cluster. - Default: ``.
- DiskSize int
- Features
ediri.Qovery. Inputs. Cluster Features 
- Features of the cluster.
- InstanceType string
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- KubernetesMode string
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- MaxRunning intNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- MinRunning intNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- Name string
- Name of the cluster.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- RoutingTables List<ediri.Qovery. Inputs. Cluster Routing Table> 
- List of routes of the cluster.
- State string
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- CloudProvider string
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- CredentialsId string
- Id of the credentials.
- OrganizationId string
- Id of the organization.
- Region string
- Region of the cluster.
- AdvancedSettings stringJson 
- Advanced settings of the cluster.
- Description string
- Description of the cluster. - Default: ``.
- DiskSize int
- Features
ClusterFeatures Args 
- Features of the cluster.
- InstanceType string
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- KubernetesMode string
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- MaxRunning intNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- MinRunning intNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- Name string
- Name of the cluster.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- RoutingTables []ClusterRouting Table Args 
- List of routes of the cluster.
- State string
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- cloudProvider String
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentialsId String
- Id of the credentials.
- organizationId String
- Id of the organization.
- region String
- Region of the cluster.
- advancedSettings StringJson 
- Advanced settings of the cluster.
- description String
- Description of the cluster. - Default: ``.
- diskSize Integer
- features
ClusterFeatures 
- Features of the cluster.
- instanceType String
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetesMode String
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- maxRunning IntegerNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- minRunning IntegerNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name String
- Name of the cluster.
- production Boolean
- Specific flag to indicate that this cluster is a production one.
- routingTables List<ClusterRouting Table> 
- List of routes of the cluster.
- state String
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- cloudProvider string
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentialsId string
- Id of the credentials.
- organizationId string
- Id of the organization.
- region string
- Region of the cluster.
- advancedSettings stringJson 
- Advanced settings of the cluster.
- description string
- Description of the cluster. - Default: ``.
- diskSize number
- features
ClusterFeatures 
- Features of the cluster.
- instanceType string
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetesMode string
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- maxRunning numberNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- minRunning numberNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name string
- Name of the cluster.
- production boolean
- Specific flag to indicate that this cluster is a production one.
- routingTables ClusterRouting Table[] 
- List of routes of the cluster.
- state string
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- cloud_provider str
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentials_id str
- Id of the credentials.
- organization_id str
- Id of the organization.
- region str
- Region of the cluster.
- advanced_settings_ strjson 
- Advanced settings of the cluster.
- description str
- Description of the cluster. - Default: ``.
- disk_size int
- features
ClusterFeatures Args 
- Features of the cluster.
- instance_type str
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetes_mode str
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- max_running_ intnodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- min_running_ intnodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name str
- Name of the cluster.
- production bool
- Specific flag to indicate that this cluster is a production one.
- routing_tables Sequence[ClusterRouting Table Args] 
- List of routes of the cluster.
- state str
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- cloudProvider String
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentialsId String
- Id of the credentials.
- organizationId String
- Id of the organization.
- region String
- Region of the cluster.
- advancedSettings StringJson 
- Advanced settings of the cluster.
- description String
- Description of the cluster. - Default: ``.
- diskSize Number
- features Property Map
- Features of the cluster.
- instanceType String
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetesMode String
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- maxRunning NumberNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- minRunning NumberNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name String
- Name of the cluster.
- production Boolean
- Specific flag to indicate that this cluster is a production one.
- routingTables List<Property Map>
- List of routes of the cluster.
- state String
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
Outputs
All input properties are implicitly available as output properties. Additionally, the Cluster resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Cluster Resource
Get an existing Cluster 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?: ClusterState, opts?: CustomResourceOptions): Cluster@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        advanced_settings_json: Optional[str] = None,
        cloud_provider: Optional[str] = None,
        credentials_id: Optional[str] = None,
        description: Optional[str] = None,
        disk_size: Optional[int] = None,
        features: Optional[ClusterFeaturesArgs] = None,
        instance_type: Optional[str] = None,
        kubernetes_mode: Optional[str] = None,
        max_running_nodes: Optional[int] = None,
        min_running_nodes: Optional[int] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        production: Optional[bool] = None,
        region: Optional[str] = None,
        routing_tables: Optional[Sequence[ClusterRoutingTableArgs]] = None,
        state: Optional[str] = None) -> Clusterfunc GetCluster(ctx *Context, name string, id IDInput, state *ClusterState, opts ...ResourceOption) (*Cluster, error)public static Cluster Get(string name, Input<string> id, ClusterState? state, CustomResourceOptions? opts = null)public static Cluster get(String name, Output<String> id, ClusterState state, CustomResourceOptions options)resources:  _:    type: qovery:Cluster    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.
- AdvancedSettings stringJson 
- Advanced settings of the cluster.
- CloudProvider string
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- CredentialsId string
- Id of the credentials.
- Description string
- Description of the cluster. - Default: ``.
- DiskSize int
- Features
ediri.Qovery. Inputs. Cluster Features 
- Features of the cluster.
- InstanceType string
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- KubernetesMode string
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- MaxRunning intNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- MinRunning intNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- Name string
- Name of the cluster.
- OrganizationId string
- Id of the organization.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- Region string
- Region of the cluster.
- RoutingTables List<ediri.Qovery. Inputs. Cluster Routing Table> 
- List of routes of the cluster.
- State string
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- AdvancedSettings stringJson 
- Advanced settings of the cluster.
- CloudProvider string
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- CredentialsId string
- Id of the credentials.
- Description string
- Description of the cluster. - Default: ``.
- DiskSize int
- Features
ClusterFeatures Args 
- Features of the cluster.
- InstanceType string
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- KubernetesMode string
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- MaxRunning intNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- MinRunning intNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- Name string
- Name of the cluster.
- OrganizationId string
- Id of the organization.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- Region string
- Region of the cluster.
- RoutingTables []ClusterRouting Table Args 
- List of routes of the cluster.
- State string
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- advancedSettings StringJson 
- Advanced settings of the cluster.
- cloudProvider String
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentialsId String
- Id of the credentials.
- description String
- Description of the cluster. - Default: ``.
- diskSize Integer
- features
ClusterFeatures 
- Features of the cluster.
- instanceType String
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetesMode String
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- maxRunning IntegerNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- minRunning IntegerNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name String
- Name of the cluster.
- organizationId String
- Id of the organization.
- production Boolean
- Specific flag to indicate that this cluster is a production one.
- region String
- Region of the cluster.
- routingTables List<ClusterRouting Table> 
- List of routes of the cluster.
- state String
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- advancedSettings stringJson 
- Advanced settings of the cluster.
- cloudProvider string
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentialsId string
- Id of the credentials.
- description string
- Description of the cluster. - Default: ``.
- diskSize number
- features
ClusterFeatures 
- Features of the cluster.
- instanceType string
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetesMode string
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- maxRunning numberNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- minRunning numberNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name string
- Name of the cluster.
- organizationId string
- Id of the organization.
- production boolean
- Specific flag to indicate that this cluster is a production one.
- region string
- Region of the cluster.
- routingTables ClusterRouting Table[] 
- List of routes of the cluster.
- state string
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- advanced_settings_ strjson 
- Advanced settings of the cluster.
- cloud_provider str
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentials_id str
- Id of the credentials.
- description str
- Description of the cluster. - Default: ``.
- disk_size int
- features
ClusterFeatures Args 
- Features of the cluster.
- instance_type str
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetes_mode str
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- max_running_ intnodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- min_running_ intnodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name str
- Name of the cluster.
- organization_id str
- Id of the organization.
- production bool
- Specific flag to indicate that this cluster is a production one.
- region str
- Region of the cluster.
- routing_tables Sequence[ClusterRouting Table Args] 
- List of routes of the cluster.
- state str
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
- advancedSettings StringJson 
- Advanced settings of the cluster.
- cloudProvider String
- Cloud provider of the cluster. - Can be: AWS,GCP,ON_PREMISE,SCW.
- credentialsId String
- Id of the credentials.
- description String
- Description of the cluster. - Default: ``.
- diskSize Number
- features Property Map
- Features of the cluster.
- instanceType String
- Instance type of the cluster. I.e: For Aws t3a.xlarge, for ScalewayDEV-L, and not set for Karpenter-enabled clusters
- kubernetesMode String
- Kubernetes mode of the cluster. - Can be: K3S,MANAGED. - Default:MANAGED.
- maxRunning NumberNodes 
- Maximum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters; and not set for
Karpenter-enabled clusters] - Must be: >= 1. - Default:10.
- minRunning NumberNodes 
- Minimum number of nodes running for the cluster. [NOTE: have to be set to 1 in case of K3S clusters, and not set for
Karpenter-enabled clusters]. - Must be: >= 1. - Default:3.
- name String
- Name of the cluster.
- organizationId String
- Id of the organization.
- production Boolean
- Specific flag to indicate that this cluster is a production one.
- region String
- Region of the cluster.
- routingTables List<Property Map>
- List of routes of the cluster.
- state String
- State of the cluster. - Can be: DEPLOYED,STOPPED. - Default:DEPLOYED.
Supporting Types
ClusterFeatures, ClusterFeaturesArgs    
- ExistingVpc ediri.Qovery. Inputs. Cluster Features Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- Karpenter
ediri.Qovery. Inputs. Cluster Features Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- StaticIp bool
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- VpcSubnet string
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- ExistingVpc ClusterFeatures Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- Karpenter
ClusterFeatures Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- StaticIp bool
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- VpcSubnet string
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existingVpc ClusterFeatures Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- karpenter
ClusterFeatures Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- staticIp Boolean
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpcSubnet String
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existingVpc ClusterFeatures Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- karpenter
ClusterFeatures Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- staticIp boolean
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpcSubnet string
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existing_vpc ClusterFeatures Existing Vpc 
- Network configuration if you want to install qovery on an existing VPC
- karpenter
ClusterFeatures Karpenter 
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- static_ip bool
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpc_subnet str
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
- existingVpc Property Map
- Network configuration if you want to install qovery on an existing VPC
- karpenter Property Map
- Karpenter parameters if you want to use Karpenter on an EKS cluster
- staticIp Boolean
- Static IP (AWS only) [NOTE: can't be updated after creation].
- Default: false.
- vpcSubnet String
- Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default: 10.0.0.0/16.
ClusterFeaturesExistingVpc, ClusterFeaturesExistingVpcArgs        
- AwsVpc stringEks Id 
- Aws VPC id
- EksSubnets List<string>Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- EksSubnets List<string>Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- EksSubnets List<string>Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- DocumentdbSubnets List<string>Zone AIds 
- Ids of the subnets for document db
- DocumentdbSubnets List<string>Zone BIds 
- Ids of the subnets for document db
- DocumentdbSubnets List<string>Zone CIds 
- Ids of the subnets for document db
- ElasticacheSubnets List<string>Zone AIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets List<string>Zone BIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets List<string>Zone CIds 
- Ids of the subnets for elasticache
- RdsSubnets List<string>Zone AIds 
- Ids of the subnets for RDS
- RdsSubnets List<string>Zone BIds 
- Ids of the subnets for RDS
- RdsSubnets List<string>Zone CIds 
- Ids of the subnets for RDS
- AwsVpc stringEks Id 
- Aws VPC id
- EksSubnets []stringZone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- EksSubnets []stringZone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- EksSubnets []stringZone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- DocumentdbSubnets []stringZone AIds 
- Ids of the subnets for document db
- DocumentdbSubnets []stringZone BIds 
- Ids of the subnets for document db
- DocumentdbSubnets []stringZone CIds 
- Ids of the subnets for document db
- ElasticacheSubnets []stringZone AIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets []stringZone BIds 
- Ids of the subnets for elasticache
- ElasticacheSubnets []stringZone CIds 
- Ids of the subnets for elasticache
- RdsSubnets []stringZone AIds 
- Ids of the subnets for RDS
- RdsSubnets []stringZone BIds 
- Ids of the subnets for RDS
- RdsSubnets []stringZone CIds 
- Ids of the subnets for RDS
- awsVpc StringEks Id 
- Aws VPC id
- eksSubnets List<String>Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdbSubnets List<String>Zone AIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone BIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone CIds 
- Ids of the subnets for document db
- elasticacheSubnets List<String>Zone AIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone BIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone CIds 
- Ids of the subnets for elasticache
- rdsSubnets List<String>Zone AIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone BIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone CIds 
- Ids of the subnets for RDS
- awsVpc stringEks Id 
- Aws VPC id
- eksSubnets string[]Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eksSubnets string[]Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eksSubnets string[]Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdbSubnets string[]Zone AIds 
- Ids of the subnets for document db
- documentdbSubnets string[]Zone BIds 
- Ids of the subnets for document db
- documentdbSubnets string[]Zone CIds 
- Ids of the subnets for document db
- elasticacheSubnets string[]Zone AIds 
- Ids of the subnets for elasticache
- elasticacheSubnets string[]Zone BIds 
- Ids of the subnets for elasticache
- elasticacheSubnets string[]Zone CIds 
- Ids of the subnets for elasticache
- rdsSubnets string[]Zone AIds 
- Ids of the subnets for RDS
- rdsSubnets string[]Zone BIds 
- Ids of the subnets for RDS
- rdsSubnets string[]Zone CIds 
- Ids of the subnets for RDS
- aws_vpc_ streks_ id 
- Aws VPC id
- eks_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eks_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eks_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdb_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for document db
- documentdb_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for document db
- documentdb_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for document db
- elasticache_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for elasticache
- elasticache_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for elasticache
- elasticache_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for elasticache
- rds_subnets_ Sequence[str]zone_ a_ ids 
- Ids of the subnets for RDS
- rds_subnets_ Sequence[str]zone_ b_ ids 
- Ids of the subnets for RDS
- rds_subnets_ Sequence[str]zone_ c_ ids 
- Ids of the subnets for RDS
- awsVpc StringEks Id 
- Aws VPC id
- eksSubnets List<String>Zone AIds 
- Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone BIds 
- Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eksSubnets List<String>Zone CIds 
- Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdbSubnets List<String>Zone AIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone BIds 
- Ids of the subnets for document db
- documentdbSubnets List<String>Zone CIds 
- Ids of the subnets for document db
- elasticacheSubnets List<String>Zone AIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone BIds 
- Ids of the subnets for elasticache
- elasticacheSubnets List<String>Zone CIds 
- Ids of the subnets for elasticache
- rdsSubnets List<String>Zone AIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone BIds 
- Ids of the subnets for RDS
- rdsSubnets List<String>Zone CIds 
- Ids of the subnets for RDS
ClusterFeaturesKarpenter, ClusterFeaturesKarpenterArgs      
- DefaultService stringArchitecture 
- The default architecture of service
- DiskSize intIn Gib 
- SpotEnabled bool
- Enable spot instances
- DefaultService stringArchitecture 
- The default architecture of service
- DiskSize intIn Gib 
- SpotEnabled bool
- Enable spot instances
- defaultService StringArchitecture 
- The default architecture of service
- diskSize IntegerIn Gib 
- spotEnabled Boolean
- Enable spot instances
- defaultService stringArchitecture 
- The default architecture of service
- diskSize numberIn Gib 
- spotEnabled boolean
- Enable spot instances
- default_service_ strarchitecture 
- The default architecture of service
- disk_size_ intin_ gib 
- spot_enabled bool
- Enable spot instances
- defaultService StringArchitecture 
- The default architecture of service
- diskSize NumberIn Gib 
- spotEnabled Boolean
- Enable spot instances
ClusterRoutingTable, ClusterRoutingTableArgs      
- Description string
- Description of the route.
- Destination string
- Destination of the route.
- Target string
- Target of the route.
- Description string
- Description of the route.
- Destination string
- Destination of the route.
- Target string
- Target of the route.
- description String
- Description of the route.
- destination String
- Destination of the route.
- target String
- Target of the route.
- description string
- Description of the route.
- destination string
- Destination of the route.
- target string
- Target of the route.
- description str
- Description of the route.
- destination str
- Destination of the route.
- target str
- Target of the route.
- description String
- Description of the route.
- destination String
- Destination of the route.
- target String
- Target of the route.
Import
$ pulumi import qovery:index/cluster:Cluster my_cluster "<organization_id>,<cluster_id>"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- qovery dirien/pulumi-qovery
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the qoveryTerraform Provider.