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:
- Cloud
Provider string - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - Credentials
Id string - Id of the credentials.
- Organization
Id string - Id of the organization.
- Region string
- Region of the cluster.
- Advanced
Settings stringJson - Advanced settings of the cluster.
- Description string
- Description of the cluster. - Default: ``.
- Disk
Size int - Features
ediri.
Qovery. Inputs. Cluster Features - Features of the cluster.
- Instance
Type string - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - Kubernetes
Mode string - 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 string
- Name of the cluster.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- Routing
Tables 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
.
- Cloud
Provider string - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - Credentials
Id string - Id of the credentials.
- Organization
Id string - Id of the organization.
- Region string
- Region of the cluster.
- Advanced
Settings stringJson - Advanced settings of the cluster.
- Description string
- Description of the cluster. - Default: ``.
- Disk
Size int - Features
Cluster
Features Args - Features of the cluster.
- Instance
Type string - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - Kubernetes
Mode string - 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 string
- Name of the cluster.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- Routing
Tables []ClusterRouting Table Args - List of routes of the cluster.
- State string
- State of the cluster. - Can be:
DEPLOYED
,STOPPED
. - Default:DEPLOYED
.
- cloud
Provider String - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - credentials
Id String - Id of the credentials.
- organization
Id String - Id of the organization.
- region String
- Region of the cluster.
- advanced
Settings StringJson - Advanced settings of the cluster.
- description String
- Description of the cluster. - Default: ``.
- disk
Size Integer - features
Cluster
Features - Features of the cluster.
- instance
Type String - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - kubernetes
Mode String - Kubernetes mode of the cluster. - Can be:
K3S
,MANAGED
. - Default:MANAGED
. - max
Running 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
. - min
Running 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.
- routing
Tables List<ClusterRouting Table> - List of routes of the cluster.
- state String
- State of the cluster. - Can be:
DEPLOYED
,STOPPED
. - Default:DEPLOYED
.
- cloud
Provider string - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - credentials
Id string - Id of the credentials.
- organization
Id string - Id of the organization.
- region string
- Region of the cluster.
- advanced
Settings stringJson - Advanced settings of the cluster.
- description string
- Description of the cluster. - Default: ``.
- disk
Size number - features
Cluster
Features - Features of the cluster.
- instance
Type string - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - kubernetes
Mode string - Kubernetes mode of the cluster. - Can be:
K3S
,MANAGED
. - Default:MANAGED
. - max
Running 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
. - min
Running 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.
- routing
Tables 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
Cluster
Features 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
.
- cloud
Provider String - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - credentials
Id String - Id of the credentials.
- organization
Id String - Id of the organization.
- region String
- Region of the cluster.
- advanced
Settings StringJson - Advanced settings of the cluster.
- description String
- Description of the cluster. - Default: ``.
- disk
Size Number - features Property Map
- Features of the cluster.
- instance
Type String - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - kubernetes
Mode String - Kubernetes mode of the cluster. - Can be:
K3S
,MANAGED
. - Default:MANAGED
. - max
Running 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
. - min
Running 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.
- routing
Tables 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) -> Cluster
func 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)
Resource lookup is not supported in YAML
- 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.
- Advanced
Settings stringJson - Advanced settings of the cluster.
- Cloud
Provider string - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - Credentials
Id string - Id of the credentials.
- Description string
- Description of the cluster. - Default: ``.
- Disk
Size int - Features
ediri.
Qovery. Inputs. Cluster Features - Features of the cluster.
- Instance
Type string - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - Kubernetes
Mode string - 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 string
- Name of the cluster.
- Organization
Id string - Id of the organization.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- Region string
- Region of the cluster.
- Routing
Tables 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
.
- Advanced
Settings stringJson - Advanced settings of the cluster.
- Cloud
Provider string - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - Credentials
Id string - Id of the credentials.
- Description string
- Description of the cluster. - Default: ``.
- Disk
Size int - Features
Cluster
Features Args - Features of the cluster.
- Instance
Type string - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - Kubernetes
Mode string - 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 string
- Name of the cluster.
- Organization
Id string - Id of the organization.
- Production bool
- Specific flag to indicate that this cluster is a production one.
- Region string
- Region of the cluster.
- Routing
Tables []ClusterRouting Table Args - List of routes of the cluster.
- State string
- State of the cluster. - Can be:
DEPLOYED
,STOPPED
. - Default:DEPLOYED
.
- advanced
Settings StringJson - Advanced settings of the cluster.
- cloud
Provider String - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - credentials
Id String - Id of the credentials.
- description String
- Description of the cluster. - Default: ``.
- disk
Size Integer - features
Cluster
Features - Features of the cluster.
- instance
Type String - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - kubernetes
Mode String - Kubernetes mode of the cluster. - Can be:
K3S
,MANAGED
. - Default:MANAGED
. - max
Running 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
. - min
Running 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.
- organization
Id String - Id of the organization.
- production Boolean
- Specific flag to indicate that this cluster is a production one.
- region String
- Region of the cluster.
- routing
Tables List<ClusterRouting Table> - List of routes of the cluster.
- state String
- State of the cluster. - Can be:
DEPLOYED
,STOPPED
. - Default:DEPLOYED
.
- advanced
Settings stringJson - Advanced settings of the cluster.
- cloud
Provider string - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - credentials
Id string - Id of the credentials.
- description string
- Description of the cluster. - Default: ``.
- disk
Size number - features
Cluster
Features - Features of the cluster.
- instance
Type string - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - kubernetes
Mode string - Kubernetes mode of the cluster. - Can be:
K3S
,MANAGED
. - Default:MANAGED
. - max
Running 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
. - min
Running 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.
- organization
Id string - Id of the organization.
- production boolean
- Specific flag to indicate that this cluster is a production one.
- region string
- Region of the cluster.
- routing
Tables 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
Cluster
Features 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
.
- advanced
Settings StringJson - Advanced settings of the cluster.
- cloud
Provider String - Cloud provider of the cluster. - Can be:
AWS
,GCP
,ON_PREMISE
,SCW
. - credentials
Id String - Id of the credentials.
- description String
- Description of the cluster. - Default: ``.
- disk
Size Number - features Property Map
- Features of the cluster.
- instance
Type String - Instance type of the cluster. I.e: For Aws
t3a.xlarge
, for ScalewayDEV-L
, and not set for Karpenter-enabled clusters - kubernetes
Mode String - Kubernetes mode of the cluster. - Can be:
K3S
,MANAGED
. - Default:MANAGED
. - max
Running 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
. - min
Running 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.
- organization
Id String - Id of the organization.
- production Boolean
- Specific flag to indicate that this cluster is a production one.
- region String
- Region of the cluster.
- routing
Tables 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
- Existing
Vpc 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
- Static
Ip bool - Static IP (AWS only) [NOTE: can't be updated after creation].
- Default:
false
. - Vpc
Subnet 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
Cluster
Features 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 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
Cluster
Features Karpenter - Karpenter parameters if you want to use Karpenter on an EKS cluster
- static
Ip Boolean - Static IP (AWS only) [NOTE: can't be updated after creation].
- Default:
false
. - vpc
Subnet 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
Cluster
Features Karpenter - Karpenter parameters if you want to use Karpenter on an EKS cluster
- static
Ip boolean - Static IP (AWS only) [NOTE: can't be updated after creation].
- Default:
false
. - vpc
Subnet 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
Cluster
Features 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
.
- existing
Vpc 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
- static
Ip Boolean - Static IP (AWS only) [NOTE: can't be updated after creation].
- Default:
false
. - vpc
Subnet String - Custom VPC subnet (AWS only) [NOTE: can't be updated after creation].
- Default:
10.0.0.0/16
.
ClusterFeaturesExistingVpc, ClusterFeaturesExistingVpcArgs
- Aws
Vpc stringEks Id - Aws VPC id
- Eks
Subnets List<string>Zone AIds - Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- Eks
Subnets List<string>Zone BIds - Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- Eks
Subnets List<string>Zone CIds - Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- Documentdb
Subnets List<string>Zone AIds - Ids of the subnets for document db
- Documentdb
Subnets List<string>Zone BIds - Ids of the subnets for document db
- Documentdb
Subnets List<string>Zone CIds - Ids of the subnets for document db
- Elasticache
Subnets List<string>Zone AIds - Ids of the subnets for elasticache
- Elasticache
Subnets List<string>Zone BIds - Ids of the subnets for elasticache
- Elasticache
Subnets List<string>Zone CIds - Ids of the subnets for elasticache
- Rds
Subnets List<string>Zone AIds - Ids of the subnets for RDS
- Rds
Subnets List<string>Zone BIds - Ids of the subnets for RDS
- Rds
Subnets List<string>Zone CIds - Ids of the subnets for RDS
- Aws
Vpc stringEks Id - Aws VPC id
- Eks
Subnets []stringZone AIds - Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- Eks
Subnets []stringZone BIds - Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- Eks
Subnets []stringZone CIds - Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- Documentdb
Subnets []stringZone AIds - Ids of the subnets for document db
- Documentdb
Subnets []stringZone BIds - Ids of the subnets for document db
- Documentdb
Subnets []stringZone CIds - Ids of the subnets for document db
- Elasticache
Subnets []stringZone AIds - Ids of the subnets for elasticache
- Elasticache
Subnets []stringZone BIds - Ids of the subnets for elasticache
- Elasticache
Subnets []stringZone CIds - Ids of the subnets for elasticache
- Rds
Subnets []stringZone AIds - Ids of the subnets for RDS
- Rds
Subnets []stringZone BIds - Ids of the subnets for RDS
- Rds
Subnets []stringZone CIds - Ids of the subnets for RDS
- aws
Vpc StringEks Id - Aws VPC id
- eks
Subnets List<String>Zone AIds - Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eks
Subnets List<String>Zone BIds - Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eks
Subnets List<String>Zone CIds - Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdb
Subnets List<String>Zone AIds - Ids of the subnets for document db
- documentdb
Subnets List<String>Zone BIds - Ids of the subnets for document db
- documentdb
Subnets List<String>Zone CIds - Ids of the subnets for document db
- elasticache
Subnets List<String>Zone AIds - Ids of the subnets for elasticache
- elasticache
Subnets List<String>Zone BIds - Ids of the subnets for elasticache
- elasticache
Subnets List<String>Zone CIds - Ids of the subnets for elasticache
- rds
Subnets List<String>Zone AIds - Ids of the subnets for RDS
- rds
Subnets List<String>Zone BIds - Ids of the subnets for RDS
- rds
Subnets List<String>Zone CIds - Ids of the subnets for RDS
- aws
Vpc stringEks Id - Aws VPC id
- eks
Subnets string[]Zone AIds - Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eks
Subnets string[]Zone BIds - Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eks
Subnets string[]Zone CIds - Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdb
Subnets string[]Zone AIds - Ids of the subnets for document db
- documentdb
Subnets string[]Zone BIds - Ids of the subnets for document db
- documentdb
Subnets string[]Zone CIds - Ids of the subnets for document db
- elasticache
Subnets string[]Zone AIds - Ids of the subnets for elasticache
- elasticache
Subnets string[]Zone BIds - Ids of the subnets for elasticache
- elasticache
Subnets string[]Zone CIds - Ids of the subnets for elasticache
- rds
Subnets string[]Zone AIds - Ids of the subnets for RDS
- rds
Subnets string[]Zone BIds - Ids of the subnets for RDS
- rds
Subnets 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
- aws
Vpc StringEks Id - Aws VPC id
- eks
Subnets List<String>Zone AIds - Ids of the subnets for EKS zone a. Must have map_public_ip_on_launch set to true
- eks
Subnets List<String>Zone BIds - Ids of the subnets for EKS zone b. Must have map_public_ip_on_launch set to true
- eks
Subnets List<String>Zone CIds - Ids of the subnets for EKS zone c. Must have map_public_ip_on_launch set to true
- documentdb
Subnets List<String>Zone AIds - Ids of the subnets for document db
- documentdb
Subnets List<String>Zone BIds - Ids of the subnets for document db
- documentdb
Subnets List<String>Zone CIds - Ids of the subnets for document db
- elasticache
Subnets List<String>Zone AIds - Ids of the subnets for elasticache
- elasticache
Subnets List<String>Zone BIds - Ids of the subnets for elasticache
- elasticache
Subnets List<String>Zone CIds - Ids of the subnets for elasticache
- rds
Subnets List<String>Zone AIds - Ids of the subnets for RDS
- rds
Subnets List<String>Zone BIds - Ids of the subnets for RDS
- rds
Subnets List<String>Zone CIds - Ids of the subnets for RDS
ClusterFeaturesKarpenter, ClusterFeaturesKarpenterArgs
- Default
Service stringArchitecture - The default architecture of service
- Disk
Size intIn Gib - Spot
Enabled bool - Enable spot instances
- Default
Service stringArchitecture - The default architecture of service
- Disk
Size intIn Gib - Spot
Enabled bool - Enable spot instances
- default
Service StringArchitecture - The default architecture of service
- disk
Size IntegerIn Gib - spot
Enabled Boolean - Enable spot instances
- default
Service stringArchitecture - The default architecture of service
- disk
Size numberIn Gib - spot
Enabled boolean - Enable spot instances
- default_
service_ strarchitecture - The default architecture of service
- disk_
size_ intin_ gib - spot_
enabled bool - Enable spot instances
- default
Service StringArchitecture - The default architecture of service
- disk
Size NumberIn Gib - spot
Enabled 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
qovery
Terraform Provider.