1. Packages
  2. Selectel Provider
  3. API Docs
  4. MksClusterV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.MksClusterV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Creates and manages a Managed Kubernetes cluster using public API v1. For more information about Managed Kubernetes, see the official Selectel documentation.

    Example Usage

    High availability cluster

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const haCluster = new selectel.MksClusterV1("haCluster", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-7",
        kubeVersion: data.selectel_mks_kube_versions_v1.versions.latest_version,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    ha_cluster = selectel.MksClusterV1("haCluster",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-7",
        kube_version=data["selectel_mks_kube_versions_v1"]["versions"]["latest_version"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewMksClusterV1(ctx, "haCluster", &selectel.MksClusterV1Args{
    			ProjectId:   pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:      pulumi.String("ru-7"),
    			KubeVersion: pulumi.Any(data.Selectel_mks_kube_versions_v1.Versions.Latest_version),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var haCluster = new Selectel.MksClusterV1("haCluster", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-7",
            KubeVersion = data.Selectel_mks_kube_versions_v1.Versions.Latest_version,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.MksClusterV1;
    import com.pulumi.selectel.MksClusterV1Args;
    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 haCluster = new MksClusterV1("haCluster", MksClusterV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-7")
                .kubeVersion(data.selectel_mks_kube_versions_v1().versions().latest_version())
                .build());
    
        }
    }
    
    resources:
      haCluster:
        type: selectel:MksClusterV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-7
          kubeVersion: ${data.selectel_mks_kube_versions_v1.versions.latest_version}
    

    Basic cluster

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const basicCluster = new selectel.MksClusterV1("basicCluster", {
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-7",
        kubeVersion: data.selectel_mks_kube_versions_v1.versions.latest_version,
        zonal: true,
        enablePatchVersionAutoUpgrade: false,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    basic_cluster = selectel.MksClusterV1("basicCluster",
        project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-7",
        kube_version=data["selectel_mks_kube_versions_v1"]["versions"]["latest_version"],
        zonal=True,
        enable_patch_version_auto_upgrade=False)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewMksClusterV1(ctx, "basicCluster", &selectel.MksClusterV1Args{
    			ProjectId:                     pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
    			Region:                        pulumi.String("ru-7"),
    			KubeVersion:                   pulumi.Any(data.Selectel_mks_kube_versions_v1.Versions.Latest_version),
    			Zonal:                         pulumi.Bool(true),
    			EnablePatchVersionAutoUpgrade: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var basicCluster = new Selectel.MksClusterV1("basicCluster", new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-7",
            KubeVersion = data.Selectel_mks_kube_versions_v1.Versions.Latest_version,
            Zonal = true,
            EnablePatchVersionAutoUpgrade = false,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.MksClusterV1;
    import com.pulumi.selectel.MksClusterV1Args;
    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 basicCluster = new MksClusterV1("basicCluster", MksClusterV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-7")
                .kubeVersion(data.selectel_mks_kube_versions_v1().versions().latest_version())
                .zonal(true)
                .enablePatchVersionAutoUpgrade(false)
                .build());
    
        }
    }
    
    resources:
      basicCluster:
        type: selectel:MksClusterV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          region: ru-7
          kubeVersion: ${data.selectel_mks_kube_versions_v1.versions.latest_version}
          zonal: true
          enablePatchVersionAutoUpgrade: false
    

    Create MksClusterV1 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MksClusterV1(name: string, args: MksClusterV1Args, opts?: CustomResourceOptions);
    @overload
    def MksClusterV1(resource_name: str,
                     args: MksClusterV1Args,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def MksClusterV1(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     kube_version: Optional[str] = None,
                     region: Optional[str] = None,
                     project_id: Optional[str] = None,
                     mks_cluster_v1_id: Optional[str] = None,
                     network_id: Optional[str] = None,
                     feature_gates: Optional[Sequence[str]] = None,
                     enable_patch_version_auto_upgrade: Optional[bool] = None,
                     maintenance_window_start: Optional[str] = None,
                     admission_controllers: Optional[Sequence[str]] = None,
                     name: Optional[str] = None,
                     enable_pod_security_policy: Optional[bool] = None,
                     oidc: Optional[MksClusterV1OidcArgs] = None,
                     private_kube_api: Optional[bool] = None,
                     enable_autorepair: Optional[bool] = None,
                     enable_audit_logs: Optional[bool] = None,
                     subnet_id: Optional[str] = None,
                     timeouts: Optional[MksClusterV1TimeoutsArgs] = None,
                     zonal: Optional[bool] = None)
    func NewMksClusterV1(ctx *Context, name string, args MksClusterV1Args, opts ...ResourceOption) (*MksClusterV1, error)
    public MksClusterV1(string name, MksClusterV1Args args, CustomResourceOptions? opts = null)
    public MksClusterV1(String name, MksClusterV1Args args)
    public MksClusterV1(String name, MksClusterV1Args args, CustomResourceOptions options)
    
    type: selectel:MksClusterV1
    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 MksClusterV1Args
    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 MksClusterV1Args
    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 MksClusterV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MksClusterV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MksClusterV1Args
    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 mksClusterV1Resource = new Selectel.MksClusterV1("mksClusterV1Resource", new()
    {
        KubeVersion = "string",
        Region = "string",
        ProjectId = "string",
        MksClusterV1Id = "string",
        NetworkId = "string",
        FeatureGates = new[]
        {
            "string",
        },
        EnablePatchVersionAutoUpgrade = false,
        MaintenanceWindowStart = "string",
        AdmissionControllers = new[]
        {
            "string",
        },
        Name = "string",
        EnablePodSecurityPolicy = false,
        Oidc = new Selectel.Inputs.MksClusterV1OidcArgs
        {
            ClientId = "string",
            Enabled = false,
            IssuerUrl = "string",
            ProviderName = "string",
            GroupsClaim = "string",
            UsernameClaim = "string",
        },
        PrivateKubeApi = false,
        EnableAutorepair = false,
        EnableAuditLogs = false,
        SubnetId = "string",
        Timeouts = new Selectel.Inputs.MksClusterV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        Zonal = false,
    });
    
    example, err := selectel.NewMksClusterV1(ctx, "mksClusterV1Resource", &selectel.MksClusterV1Args{
    	KubeVersion:    pulumi.String("string"),
    	Region:         pulumi.String("string"),
    	ProjectId:      pulumi.String("string"),
    	MksClusterV1Id: pulumi.String("string"),
    	NetworkId:      pulumi.String("string"),
    	FeatureGates: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	EnablePatchVersionAutoUpgrade: pulumi.Bool(false),
    	MaintenanceWindowStart:        pulumi.String("string"),
    	AdmissionControllers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Name:                    pulumi.String("string"),
    	EnablePodSecurityPolicy: pulumi.Bool(false),
    	Oidc: &selectel.MksClusterV1OidcArgs{
    		ClientId:      pulumi.String("string"),
    		Enabled:       pulumi.Bool(false),
    		IssuerUrl:     pulumi.String("string"),
    		ProviderName:  pulumi.String("string"),
    		GroupsClaim:   pulumi.String("string"),
    		UsernameClaim: pulumi.String("string"),
    	},
    	PrivateKubeApi:   pulumi.Bool(false),
    	EnableAutorepair: pulumi.Bool(false),
    	EnableAuditLogs:  pulumi.Bool(false),
    	SubnetId:         pulumi.String("string"),
    	Timeouts: &selectel.MksClusterV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	Zonal: pulumi.Bool(false),
    })
    
    var mksClusterV1Resource = new MksClusterV1("mksClusterV1Resource", MksClusterV1Args.builder()
        .kubeVersion("string")
        .region("string")
        .projectId("string")
        .mksClusterV1Id("string")
        .networkId("string")
        .featureGates("string")
        .enablePatchVersionAutoUpgrade(false)
        .maintenanceWindowStart("string")
        .admissionControllers("string")
        .name("string")
        .enablePodSecurityPolicy(false)
        .oidc(MksClusterV1OidcArgs.builder()
            .clientId("string")
            .enabled(false)
            .issuerUrl("string")
            .providerName("string")
            .groupsClaim("string")
            .usernameClaim("string")
            .build())
        .privateKubeApi(false)
        .enableAutorepair(false)
        .enableAuditLogs(false)
        .subnetId("string")
        .timeouts(MksClusterV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .zonal(false)
        .build());
    
    mks_cluster_v1_resource = selectel.MksClusterV1("mksClusterV1Resource",
        kube_version="string",
        region="string",
        project_id="string",
        mks_cluster_v1_id="string",
        network_id="string",
        feature_gates=["string"],
        enable_patch_version_auto_upgrade=False,
        maintenance_window_start="string",
        admission_controllers=["string"],
        name="string",
        enable_pod_security_policy=False,
        oidc={
            "client_id": "string",
            "enabled": False,
            "issuer_url": "string",
            "provider_name": "string",
            "groups_claim": "string",
            "username_claim": "string",
        },
        private_kube_api=False,
        enable_autorepair=False,
        enable_audit_logs=False,
        subnet_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        zonal=False)
    
    const mksClusterV1Resource = new selectel.MksClusterV1("mksClusterV1Resource", {
        kubeVersion: "string",
        region: "string",
        projectId: "string",
        mksClusterV1Id: "string",
        networkId: "string",
        featureGates: ["string"],
        enablePatchVersionAutoUpgrade: false,
        maintenanceWindowStart: "string",
        admissionControllers: ["string"],
        name: "string",
        enablePodSecurityPolicy: false,
        oidc: {
            clientId: "string",
            enabled: false,
            issuerUrl: "string",
            providerName: "string",
            groupsClaim: "string",
            usernameClaim: "string",
        },
        privateKubeApi: false,
        enableAutorepair: false,
        enableAuditLogs: false,
        subnetId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        zonal: false,
    });
    
    type: selectel:MksClusterV1
    properties:
        admissionControllers:
            - string
        enableAuditLogs: false
        enableAutorepair: false
        enablePatchVersionAutoUpgrade: false
        enablePodSecurityPolicy: false
        featureGates:
            - string
        kubeVersion: string
        maintenanceWindowStart: string
        mksClusterV1Id: string
        name: string
        networkId: string
        oidc:
            clientId: string
            enabled: false
            groupsClaim: string
            issuerUrl: string
            providerName: string
            usernameClaim: string
        privateKubeApi: false
        projectId: string
        region: string
        subnetId: string
        timeouts:
            create: string
            delete: string
            update: string
        zonal: false
    

    MksClusterV1 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 MksClusterV1 resource accepts the following input properties:

    KubeVersion string

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    ProjectId string
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    AdmissionControllers List<string>
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    EnableAuditLogs bool

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    EnableAutorepair bool
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    EnablePatchVersionAutoUpgrade bool
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    EnablePodSecurityPolicy bool
    FeatureGates List<string>
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    MaintenanceWindowStart string
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    MksClusterV1Id string
    Name string
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    NetworkId string
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    Oidc MksClusterV1Oidc

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    PrivateKubeApi bool

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    SubnetId string
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    Timeouts MksClusterV1Timeouts
    Zonal bool

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    KubeVersion string

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    ProjectId string
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    AdmissionControllers []string
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    EnableAuditLogs bool

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    EnableAutorepair bool
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    EnablePatchVersionAutoUpgrade bool
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    EnablePodSecurityPolicy bool
    FeatureGates []string
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    MaintenanceWindowStart string
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    MksClusterV1Id string
    Name string
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    NetworkId string
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    Oidc MksClusterV1OidcArgs

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    PrivateKubeApi bool

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    SubnetId string
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    Timeouts MksClusterV1TimeoutsArgs
    Zonal bool

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    kubeVersion String

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    projectId String
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    admissionControllers List<String>
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enableAuditLogs Boolean

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enableAutorepair Boolean
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enablePatchVersionAutoUpgrade Boolean
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enablePodSecurityPolicy Boolean
    featureGates List<String>
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    maintenanceWindowStart String
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mksClusterV1Id String
    name String
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    networkId String
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc MksClusterV1Oidc

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    privateKubeApi Boolean

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    subnetId String
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts MksClusterV1Timeouts
    zonal Boolean

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    kubeVersion string

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    projectId string
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    admissionControllers string[]
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enableAuditLogs boolean

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enableAutorepair boolean
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enablePatchVersionAutoUpgrade boolean
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enablePodSecurityPolicy boolean
    featureGates string[]
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    maintenanceWindowStart string
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mksClusterV1Id string
    name string
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    networkId string
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc MksClusterV1Oidc

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    privateKubeApi boolean

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    subnetId string
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts MksClusterV1Timeouts
    zonal boolean

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    kube_version str

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    project_id str
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    admission_controllers Sequence[str]
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enable_audit_logs bool

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enable_autorepair bool
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enable_patch_version_auto_upgrade bool
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enable_pod_security_policy bool
    feature_gates Sequence[str]
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    maintenance_window_start str
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mks_cluster_v1_id str
    name str
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    network_id str
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc MksClusterV1OidcArgs

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    private_kube_api bool

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    subnet_id str
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts MksClusterV1TimeoutsArgs
    zonal bool

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    kubeVersion String

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    projectId String
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    admissionControllers List<String>
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enableAuditLogs Boolean

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enableAutorepair Boolean
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enablePatchVersionAutoUpgrade Boolean
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enablePodSecurityPolicy Boolean
    featureGates List<String>
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    maintenanceWindowStart String
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mksClusterV1Id String
    name String
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    networkId String
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc Property Map

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    privateKubeApi Boolean

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    subnetId String
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts Property Map
    zonal Boolean

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MksClusterV1 resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    KubeApiIp string
    IP address of the Kube API.
    MaintenanceWindowEnd string
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    Status string
    Cluster status.
    Id string
    The provider-assigned unique ID for this managed resource.
    KubeApiIp string
    IP address of the Kube API.
    MaintenanceWindowEnd string
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    Status string
    Cluster status.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeApiIp String
    IP address of the Kube API.
    maintenanceWindowEnd String
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    status String
    Cluster status.
    id string
    The provider-assigned unique ID for this managed resource.
    kubeApiIp string
    IP address of the Kube API.
    maintenanceWindowEnd string
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    status string
    Cluster status.
    id str
    The provider-assigned unique ID for this managed resource.
    kube_api_ip str
    IP address of the Kube API.
    maintenance_window_end str
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    status str
    Cluster status.
    id String
    The provider-assigned unique ID for this managed resource.
    kubeApiIp String
    IP address of the Kube API.
    maintenanceWindowEnd String
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    status String
    Cluster status.

    Look up Existing MksClusterV1 Resource

    Get an existing MksClusterV1 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?: MksClusterV1State, opts?: CustomResourceOptions): MksClusterV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admission_controllers: Optional[Sequence[str]] = None,
            enable_audit_logs: Optional[bool] = None,
            enable_autorepair: Optional[bool] = None,
            enable_patch_version_auto_upgrade: Optional[bool] = None,
            enable_pod_security_policy: Optional[bool] = None,
            feature_gates: Optional[Sequence[str]] = None,
            kube_api_ip: Optional[str] = None,
            kube_version: Optional[str] = None,
            maintenance_window_end: Optional[str] = None,
            maintenance_window_start: Optional[str] = None,
            mks_cluster_v1_id: Optional[str] = None,
            name: Optional[str] = None,
            network_id: Optional[str] = None,
            oidc: Optional[MksClusterV1OidcArgs] = None,
            private_kube_api: Optional[bool] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            status: Optional[str] = None,
            subnet_id: Optional[str] = None,
            timeouts: Optional[MksClusterV1TimeoutsArgs] = None,
            zonal: Optional[bool] = None) -> MksClusterV1
    func GetMksClusterV1(ctx *Context, name string, id IDInput, state *MksClusterV1State, opts ...ResourceOption) (*MksClusterV1, error)
    public static MksClusterV1 Get(string name, Input<string> id, MksClusterV1State? state, CustomResourceOptions? opts = null)
    public static MksClusterV1 get(String name, Output<String> id, MksClusterV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:MksClusterV1    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.
    The following state arguments are supported:
    AdmissionControllers List<string>
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    EnableAuditLogs bool

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    EnableAutorepair bool
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    EnablePatchVersionAutoUpgrade bool
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    EnablePodSecurityPolicy bool
    FeatureGates List<string>
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    KubeApiIp string
    IP address of the Kube API.
    KubeVersion string

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    MaintenanceWindowEnd string
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    MaintenanceWindowStart string
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    MksClusterV1Id string
    Name string
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    NetworkId string
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    Oidc MksClusterV1Oidc

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    PrivateKubeApi bool

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    ProjectId string
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    Status string
    Cluster status.
    SubnetId string
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    Timeouts MksClusterV1Timeouts
    Zonal bool

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    AdmissionControllers []string
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    EnableAuditLogs bool

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    EnableAutorepair bool
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    EnablePatchVersionAutoUpgrade bool
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    EnablePodSecurityPolicy bool
    FeatureGates []string
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    KubeApiIp string
    IP address of the Kube API.
    KubeVersion string

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    MaintenanceWindowEnd string
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    MaintenanceWindowStart string
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    MksClusterV1Id string
    Name string
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    NetworkId string
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    Oidc MksClusterV1OidcArgs

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    PrivateKubeApi bool

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    ProjectId string
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    Status string
    Cluster status.
    SubnetId string
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    Timeouts MksClusterV1TimeoutsArgs
    Zonal bool

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    admissionControllers List<String>
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enableAuditLogs Boolean

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enableAutorepair Boolean
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enablePatchVersionAutoUpgrade Boolean
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enablePodSecurityPolicy Boolean
    featureGates List<String>
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    kubeApiIp String
    IP address of the Kube API.
    kubeVersion String

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    maintenanceWindowEnd String
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    maintenanceWindowStart String
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mksClusterV1Id String
    name String
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    networkId String
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc MksClusterV1Oidc

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    privateKubeApi Boolean

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    projectId String
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    status String
    Cluster status.
    subnetId String
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts MksClusterV1Timeouts
    zonal Boolean

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    admissionControllers string[]
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enableAuditLogs boolean

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enableAutorepair boolean
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enablePatchVersionAutoUpgrade boolean
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enablePodSecurityPolicy boolean
    featureGates string[]
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    kubeApiIp string
    IP address of the Kube API.
    kubeVersion string

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    maintenanceWindowEnd string
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    maintenanceWindowStart string
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mksClusterV1Id string
    name string
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    networkId string
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc MksClusterV1Oidc

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    privateKubeApi boolean

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    projectId string
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    status string
    Cluster status.
    subnetId string
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts MksClusterV1Timeouts
    zonal boolean

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    admission_controllers Sequence[str]
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enable_audit_logs bool

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enable_autorepair bool
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enable_patch_version_auto_upgrade bool
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enable_pod_security_policy bool
    feature_gates Sequence[str]
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    kube_api_ip str
    IP address of the Kube API.
    kube_version str

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    maintenance_window_end str
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    maintenance_window_start str
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mks_cluster_v1_id str
    name str
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    network_id str
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc MksClusterV1OidcArgs

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    private_kube_api bool

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    project_id str
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    status str
    Cluster status.
    subnet_id str
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts MksClusterV1TimeoutsArgs
    zonal bool

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    admissionControllers List<String>
    Enables or disables admission controllers for the cluster. You can retrieve the list of available admission controllers with the selectel.getMksAdmissionControllersV1 data source. Learn more about Admission controllers.
    enableAuditLogs Boolean

    Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.

    Boolean flag:

    enableAutorepair Boolean
    Enables or disables node auto-repairing (worker nodes are automatically restarted). Auto-repairing is not available if you have one worker node. After auto-repairing, all data on the boot volumes are deleted. Boolean flag, the default value is true. Learn more about Nodes auto-repairing.
    enablePatchVersionAutoUpgrade Boolean
    Enables or disables auto-upgrading of the cluster to the latest available Kubernetes patch version during the maintenance window. Boolean flag, the default value is true. Must be set to false for basic clusters (if zonal is true). Learn more about Patch versions auto-upgrading.
    enablePodSecurityPolicy Boolean
    featureGates List<String>
    Enables or disables feature gates for the cluster. You can retrieve the list of available feature gates with the selectel.getMksFeatureGatesV1 data source. Learn more about Feature gates.
    kubeApiIp String
    IP address of the Kube API.
    kubeVersion String

    Kubernetes version of the cluster. Changing this upgrades the cluster version. You can retrieve information about the Kubernetes versions with the selectel.getMksKubeVersionsV1 data source.

    To upgrade a patch version, the desired version should match the latest available patch version for the current minor release.

    To upgrade a minor version, the desired version should match the next available minor release with the latest patch version.

    maintenanceWindowEnd String
    Time in UTC when maintenance in the cluster ends. The format is hh:mm:ss. Learn more about the Maintenance window.
    maintenanceWindowStart String
    Time in UTC when maintenance in the cluster starts. The format is hh:mm:ss. Learn more about the Maintenance window.
    mksClusterV1Id String
    name String
    Cluster name. Changing this creates a new cluster. The cluster name is included into the names of the cluster entities: node groups, nodes, load balancers, networks, and volumes.
    networkId String
    Unique identifier of the associated OpenStack network. Changing this creates a new cluster. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.
    oidc Property Map

    Connects an OpenID Connect (OIDC) provider to the cluster. Learn how to configure the OIDC provider in the cluster.

    The block supports the following arguments:

    privateKubeApi Boolean

    Specifies if Kube API is available from the Internet. Changing this creates a new cluster.

    Boolean flag:

    projectId String
    Unique identifier of the associated project. Changing this creates a new cluster. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the cluster is located, for example, ru-7. Changing this creates a new cluster. Learn more about available pools in the Availability matrix.
    status String
    Cluster status.
    subnetId String
    Unique identifier of the associated OpenStack subnet. Changing this creates a new cluster. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.
    timeouts Property Map
    zonal Boolean

    Specifies a cluster type. Changing this creates a new cluster.

    Boolean flag:

    Supporting Types

    MksClusterV1Oidc, MksClusterV1OidcArgs

    ClientId string
    Service identifier issued by the OIDC provider and used in authentication requests to the resources.
    Enabled bool
    Enables or disables authentication with OpenID Connect in the cluster.
    IssuerUrl string
    URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with https://.
    ProviderName string
    Name of the connection that you create. The name is only for identification purposes.
    GroupsClaim string
    JWT claim to use as the user's group. The default value is groups.
    UsernameClaim string
    JWT claim to use as the username. The default value is sub. The content of the claim must be a unique identifier of the end user.
    ClientId string
    Service identifier issued by the OIDC provider and used in authentication requests to the resources.
    Enabled bool
    Enables or disables authentication with OpenID Connect in the cluster.
    IssuerUrl string
    URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with https://.
    ProviderName string
    Name of the connection that you create. The name is only for identification purposes.
    GroupsClaim string
    JWT claim to use as the user's group. The default value is groups.
    UsernameClaim string
    JWT claim to use as the username. The default value is sub. The content of the claim must be a unique identifier of the end user.
    clientId String
    Service identifier issued by the OIDC provider and used in authentication requests to the resources.
    enabled Boolean
    Enables or disables authentication with OpenID Connect in the cluster.
    issuerUrl String
    URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with https://.
    providerName String
    Name of the connection that you create. The name is only for identification purposes.
    groupsClaim String
    JWT claim to use as the user's group. The default value is groups.
    usernameClaim String
    JWT claim to use as the username. The default value is sub. The content of the claim must be a unique identifier of the end user.
    clientId string
    Service identifier issued by the OIDC provider and used in authentication requests to the resources.
    enabled boolean
    Enables or disables authentication with OpenID Connect in the cluster.
    issuerUrl string
    URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with https://.
    providerName string
    Name of the connection that you create. The name is only for identification purposes.
    groupsClaim string
    JWT claim to use as the user's group. The default value is groups.
    usernameClaim string
    JWT claim to use as the username. The default value is sub. The content of the claim must be a unique identifier of the end user.
    client_id str
    Service identifier issued by the OIDC provider and used in authentication requests to the resources.
    enabled bool
    Enables or disables authentication with OpenID Connect in the cluster.
    issuer_url str
    URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with https://.
    provider_name str
    Name of the connection that you create. The name is only for identification purposes.
    groups_claim str
    JWT claim to use as the user's group. The default value is groups.
    username_claim str
    JWT claim to use as the username. The default value is sub. The content of the claim must be a unique identifier of the end user.
    clientId String
    Service identifier issued by the OIDC provider and used in authentication requests to the resources.
    enabled Boolean
    Enables or disables authentication with OpenID Connect in the cluster.
    issuerUrl String
    URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with https://.
    providerName String
    Name of the connection that you create. The name is only for identification purposes.
    groupsClaim String
    JWT claim to use as the user's group. The default value is groups.
    usernameClaim String
    JWT claim to use as the username. The default value is sub. The content of the claim must be a unique identifier of the end user.

    MksClusterV1Timeouts, MksClusterV1TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    You can import a cluster:

    export OS_DOMAIN_NAME=<account_id>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<selectel_project_id>

    export INFRA_REGION=<selectel_pool>

    $ pulumi import selectel:index/mksClusterV1:MksClusterV1 cluster_name <cluster_id>
    

    where:

    • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

    • <username> — Name of the service user. To get the name, in the Control panel, go to Identity & Access ManagementUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

    • <password> — Password of the service user.

    • <selectel_project_id> — Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

    • <selectel_pool> — Pool where the cluster is located, for example, ru-7. To get information about the pool, in the Control panel, go to Cloud PlatformKubernetes. The pool is in the Pool column.

    • <cluster_id> — Unique identifier of the cluster, for example, b311ce58-2658-46b5-b733-7a0f418703f2. To get the cluster ID, in the Control panel, go to Cloud PlatformKubernetes ⟶ the cluster page ⟶ copy the ID at the top of the page under the cluster name, near the region and pool.

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel