selectel.MksClusterV1
Explore with Pulumi AI
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:
- Kube
Version 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.
- Project
Id 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. - Admission
Controllers 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.
- Enable
Audit boolLogs 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 boolVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - Enable
Pod boolSecurity Policy - Feature
Gates 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.
- Maintenance
Window stringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - Mks
Cluster stringV1Id - 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.
- Network
Id 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
Mks
Cluster V1Oidc 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 boolApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- Subnet
Id 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
Mks
Cluster V1Timeouts - Zonal bool
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- Kube
Version 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.
- Project
Id 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. - Admission
Controllers []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.
- Enable
Audit boolLogs 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 boolVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - Enable
Pod boolSecurity Policy - Feature
Gates []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.
- Maintenance
Window stringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - Mks
Cluster stringV1Id - 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.
- Network
Id 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
Mks
Cluster V1Oidc Args 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 boolApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- Subnet
Id 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
Mks
Cluster V1Timeouts Args - Zonal bool
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- kube
Version 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.
- project
Id 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. - admission
Controllers 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.
- enable
Audit BooleanLogs Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.
Boolean flag:
- enable
Autorepair 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. - enable
Patch BooleanVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable
Pod BooleanSecurity Policy - feature
Gates 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.
- maintenance
Window StringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks
Cluster StringV1Id - 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.
- network
Id 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
Mks
Cluster V1Oidc 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 BooleanApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- subnet
Id 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
Mks
Cluster V1Timeouts - zonal Boolean
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- kube
Version 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.
- project
Id 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. - admission
Controllers 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.
- enable
Audit booleanLogs Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.
Boolean flag:
- enable
Autorepair 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. - enable
Patch booleanVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable
Pod booleanSecurity Policy - feature
Gates 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.
- maintenance
Window stringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks
Cluster stringV1Id - 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.
- network
Id 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
Mks
Cluster V1Oidc 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 booleanApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- subnet
Id 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
Mks
Cluster V1Timeouts - 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_ boollogs 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_ boolversion_ auto_ upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable_
pod_ boolsecurity_ policy - 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_ strstart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks_
cluster_ strv1_ id - 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
Mks
Cluster V1Oidc Args 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_ boolapi 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
Mks
Cluster V1Timeouts Args - zonal bool
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- kube
Version 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.
- project
Id 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. - admission
Controllers 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.
- enable
Audit BooleanLogs Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.
Boolean flag:
- enable
Autorepair 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. - enable
Patch BooleanVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable
Pod BooleanSecurity Policy - feature
Gates 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.
- maintenance
Window StringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks
Cluster StringV1Id - 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.
- network
Id 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:
- private
Kube BooleanApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- subnet
Id 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.
- Kube
Api stringIp - IP address of the Kube API.
- Maintenance
Window stringEnd - 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.
- Kube
Api stringIp - IP address of the Kube API.
- Maintenance
Window stringEnd - 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.
- kube
Api StringIp - IP address of the Kube API.
- maintenance
Window StringEnd - 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.
- kube
Api stringIp - IP address of the Kube API.
- maintenance
Window stringEnd - 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_ strip - IP address of the Kube API.
- maintenance_
window_ strend - 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.
- kube
Api StringIp - IP address of the Kube API.
- maintenance
Window StringEnd - 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.
- Admission
Controllers 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.
- Enable
Audit boolLogs 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 boolVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - Enable
Pod boolSecurity Policy - Feature
Gates 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.
- Kube
Api stringIp - IP address of the Kube API.
- Kube
Version 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.
- Maintenance
Window stringEnd - Time in UTC when maintenance in the cluster ends. The format is
hh:mm:ss
. Learn more about the Maintenance window. - Maintenance
Window stringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - Mks
Cluster stringV1Id - 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.
- Network
Id 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
Mks
Cluster V1Oidc 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 boolApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- Project
Id 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.
- Subnet
Id 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
Mks
Cluster V1Timeouts - Zonal bool
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- Admission
Controllers []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.
- Enable
Audit boolLogs 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 boolVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - Enable
Pod boolSecurity Policy - Feature
Gates []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.
- Kube
Api stringIp - IP address of the Kube API.
- Kube
Version 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.
- Maintenance
Window stringEnd - Time in UTC when maintenance in the cluster ends. The format is
hh:mm:ss
. Learn more about the Maintenance window. - Maintenance
Window stringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - Mks
Cluster stringV1Id - 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.
- Network
Id 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
Mks
Cluster V1Oidc Args 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 boolApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- Project
Id 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.
- Subnet
Id 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
Mks
Cluster V1Timeouts Args - Zonal bool
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- admission
Controllers 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.
- enable
Audit BooleanLogs Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.
Boolean flag:
- enable
Autorepair 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. - enable
Patch BooleanVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable
Pod BooleanSecurity Policy - feature
Gates 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.
- kube
Api StringIp - IP address of the Kube API.
- kube
Version 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.
- maintenance
Window StringEnd - Time in UTC when maintenance in the cluster ends. The format is
hh:mm:ss
. Learn more about the Maintenance window. - maintenance
Window StringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks
Cluster StringV1Id - 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.
- network
Id 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
Mks
Cluster V1Oidc 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 BooleanApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- project
Id 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.
- subnet
Id 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
Mks
Cluster V1Timeouts - zonal Boolean
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- admission
Controllers 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.
- enable
Audit booleanLogs Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.
Boolean flag:
- enable
Autorepair 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. - enable
Patch booleanVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable
Pod booleanSecurity Policy - feature
Gates 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.
- kube
Api stringIp - IP address of the Kube API.
- kube
Version 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.
- maintenance
Window stringEnd - Time in UTC when maintenance in the cluster ends. The format is
hh:mm:ss
. Learn more about the Maintenance window. - maintenance
Window stringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks
Cluster stringV1Id - 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.
- network
Id 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
Mks
Cluster V1Oidc 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 booleanApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- project
Id 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.
- subnet
Id 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
Mks
Cluster V1Timeouts - 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_ boollogs 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_ boolversion_ auto_ upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable_
pod_ boolsecurity_ policy - 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_ strip - 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_ strend - Time in UTC when maintenance in the cluster ends. The format is
hh:mm:ss
. Learn more about the Maintenance window. - maintenance_
window_ strstart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks_
cluster_ strv1_ id - 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
Mks
Cluster V1Oidc Args 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_ boolapi 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
Mks
Cluster V1Timeouts Args - zonal bool
Specifies a cluster type. Changing this creates a new cluster.
Boolean flag:
- admission
Controllers 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.
- enable
Audit BooleanLogs Enables or disables collection of audit logs. Learn how to configure export of audit logs to a logging system.
Boolean flag:
- enable
Autorepair 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. - enable
Patch BooleanVersion Auto Upgrade - 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 (ifzonal
istrue
). Learn more about Patch versions auto-upgrading. - enable
Pod BooleanSecurity Policy - feature
Gates 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.
- kube
Api StringIp - IP address of the Kube API.
- kube
Version 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.
- maintenance
Window StringEnd - Time in UTC when maintenance in the cluster ends. The format is
hh:mm:ss
. Learn more about the Maintenance window. - maintenance
Window StringStart - Time in UTC when maintenance in the cluster starts. The format is
hh:mm:ss
. Learn more about the Maintenance window. - mks
Cluster StringV1Id - 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.
- network
Id 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:
- private
Kube BooleanApi Specifies if Kube API is available from the Internet. Changing this creates a new cluster.
Boolean flag:
- project
Id 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.
- subnet
Id 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
- Client
Id 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.
- Issuer
Url string - URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with
https://
. - Provider
Name string - Name of the connection that you create. The name is only for identification purposes.
- Groups
Claim string - JWT claim to use as the user's group. The default value is
groups
. - Username
Claim 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 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.
- Issuer
Url string - URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with
https://
. - Provider
Name string - Name of the connection that you create. The name is only for identification purposes.
- Groups
Claim string - JWT claim to use as the user's group. The default value is
groups
. - Username
Claim 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 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.
- issuer
Url String - URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with
https://
. - provider
Name String - Name of the connection that you create. The name is only for identification purposes.
- groups
Claim String - JWT claim to use as the user's group. The default value is
groups
. - username
Claim 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 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.
- issuer
Url string - URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with
https://
. - provider
Name string - Name of the connection that you create. The name is only for identification purposes.
- groups
Claim string - JWT claim to use as the user's group. The default value is
groups
. - username
Claim 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.
- client
Id 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.
- issuer
Url String - URL of the OIDC provider used to authenticate users who request access to the cluster. The link must start with
https://
. - provider
Name String - Name of the connection that you create. The name is only for identification purposes.
- groups
Claim String - JWT claim to use as the user's group. The default value is
groups
. - username
Claim 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
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 Management ⟶ User 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 Platform ⟶ Kubernetes. 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 Platform ⟶ Kubernetes ⟶ 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.