yandex.KubernetesCluster
Explore with Pulumi AI
Creates a Yandex Kubernetes Cluster.
Example Usage
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var zonalClusterResourceName = new Yandex.KubernetesCluster("zonalClusterResourceName", new Yandex.KubernetesClusterArgs
{
Description = "description",
KmsProvider = new Yandex.Inputs.KubernetesClusterKmsProviderArgs
{
KeyId = yandex_kms_symmetric_key.Kms_key_resource_name.Id,
},
Labels =
{
{ "my_key", "my_value" },
{ "my_other_key", "my_other_value" },
},
Master = new Yandex.Inputs.KubernetesClusterMasterArgs
{
MaintenancePolicy = new Yandex.Inputs.KubernetesClusterMasterMaintenancePolicyArgs
{
AutoUpgrade = true,
MaintenanceWindow =
{
{
{ "duration", "3h" },
{ "startTime", "15:00" },
},
},
},
PublicIp = true,
SecurityGroupIds =
{
yandex_vpc_security_group.Security_group_name.Id,
},
Version = "1.17",
Zonal = new Yandex.Inputs.KubernetesClusterMasterZonalArgs
{
SubnetId = yandex_vpc_subnet.Subnet_resource_name.Id,
Zone = yandex_vpc_subnet.Subnet_resource_name.Zone,
},
},
NetworkId = yandex_vpc_network.Network_resource_name.Id,
NetworkPolicyProvider = "CALICO",
NodeServiceAccountId = yandex_iam_service_account.Node_service_account_resource_name.Id,
ReleaseChannel = "RAPID",
ServiceAccountId = yandex_iam_service_account.Service_account_resource_name.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewKubernetesCluster(ctx, "zonalClusterResourceName", &yandex.KubernetesClusterArgs{
Description: pulumi.String("description"),
KmsProvider: &KubernetesClusterKmsProviderArgs{
KeyId: pulumi.Any(yandex_kms_symmetric_key.Kms_key_resource_name.Id),
},
Labels: pulumi.StringMap{
"my_key": pulumi.String("my_value"),
"my_other_key": pulumi.String("my_other_value"),
},
Master: &KubernetesClusterMasterArgs{
MaintenancePolicy: &KubernetesClusterMasterMaintenancePolicyArgs{
AutoUpgrade: pulumi.Bool(true),
MaintenanceWindow: []map[string]interface{}{
map[string]interface{}{
"duration": "3h",
"startTime": "15:00",
},
},
},
PublicIp: pulumi.Bool(true),
SecurityGroupIds: pulumi.StringArray{
pulumi.Any(yandex_vpc_security_group.Security_group_name.Id),
},
Version: pulumi.String("1.17"),
Zonal: &KubernetesClusterMasterZonalArgs{
SubnetId: pulumi.Any(yandex_vpc_subnet.Subnet_resource_name.Id),
Zone: pulumi.Any(yandex_vpc_subnet.Subnet_resource_name.Zone),
},
},
NetworkId: pulumi.Any(yandex_vpc_network.Network_resource_name.Id),
NetworkPolicyProvider: pulumi.String("CALICO"),
NodeServiceAccountId: pulumi.Any(yandex_iam_service_account.Node_service_account_resource_name.Id),
ReleaseChannel: pulumi.String("RAPID"),
ServiceAccountId: pulumi.Any(yandex_iam_service_account.Service_account_resource_name.Id),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
zonal_cluster_resource_name = yandex.KubernetesCluster("zonalClusterResourceName",
description="description",
kms_provider=yandex.KubernetesClusterKmsProviderArgs(
key_id=yandex_kms_symmetric_key["kms_key_resource_name"]["id"],
),
labels={
"my_key": "my_value",
"my_other_key": "my_other_value",
},
master=yandex.KubernetesClusterMasterArgs(
maintenance_policy=yandex.KubernetesClusterMasterMaintenancePolicyArgs(
auto_upgrade=True,
maintenance_window=[{
"duration": "3h",
"startTime": "15:00",
}],
),
public_ip=True,
security_group_ids=[yandex_vpc_security_group["security_group_name"]["id"]],
version="1.17",
zonal=yandex.KubernetesClusterMasterZonalArgs(
subnet_id=yandex_vpc_subnet["subnet_resource_name"]["id"],
zone=yandex_vpc_subnet["subnet_resource_name"]["zone"],
),
),
network_id=yandex_vpc_network["network_resource_name"]["id"],
network_policy_provider="CALICO",
node_service_account_id=yandex_iam_service_account["node_service_account_resource_name"]["id"],
release_channel="RAPID",
service_account_id=yandex_iam_service_account["service_account_resource_name"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const zonalClusterResourceName = new yandex.KubernetesCluster("zonal_cluster_resource_name", {
description: "description",
kmsProvider: {
keyId: yandex_kms_symmetric_key_kms_key_resource_name.id,
},
labels: {
my_key: "my_value",
my_other_key: "my_other_value",
},
master: {
maintenancePolicy: {
autoUpgrade: true,
maintenanceWindows: [{
duration: "3h",
startTime: "15:00",
}],
},
publicIp: true,
securityGroupIds: [yandex_vpc_security_group_security_group_name.id],
version: "1.17",
zonal: {
subnetId: yandex_vpc_subnet_subnet_resource_name.id,
zone: yandex_vpc_subnet_subnet_resource_name.zone,
},
},
networkId: yandex_vpc_network_network_resource_name.id,
networkPolicyProvider: "CALICO",
nodeServiceAccountId: yandex_iam_service_account_node_service_account_resource_name.id,
releaseChannel: "RAPID",
serviceAccountId: yandex_iam_service_account_service_account_resource_name.id,
});
Coming soon!
using Pulumi;
using Yandex = Pulumi.Yandex;
class MyStack : Stack
{
public MyStack()
{
var regionalClusterResourceName = new Yandex.KubernetesCluster("regionalClusterResourceName", new Yandex.KubernetesClusterArgs
{
Description = "description",
Labels =
{
{ "my_key", "my_value" },
{ "my_other_key", "my_other_value" },
},
Master = new Yandex.Inputs.KubernetesClusterMasterArgs
{
MaintenancePolicy = new Yandex.Inputs.KubernetesClusterMasterMaintenancePolicyArgs
{
AutoUpgrade = true,
MaintenanceWindow =
{
{
{ "day", "monday" },
{ "duration", "3h" },
{ "startTime", "15:00" },
},
{
{ "day", "friday" },
{ "duration", "4h30m" },
{ "startTime", "10:00" },
},
},
},
PublicIp = true,
Regional = new Yandex.Inputs.KubernetesClusterMasterRegionalArgs
{
Location =
{
{
{ "subnetId", yandex_vpc_subnet.Subnet_a_resource_name.Id },
{ "zone", yandex_vpc_subnet.Subnet_a_resource_name.Zone },
},
{
{ "subnetId", yandex_vpc_subnet.Subnet_b_resource_name.Id },
{ "zone", yandex_vpc_subnet.Subnet_b_resource_name.Zone },
},
{
{ "subnetId", yandex_vpc_subnet.Subnet_c_resource_name.Id },
{ "zone", yandex_vpc_subnet.Subnet_c_resource_name.Zone },
},
},
Region = "ru-central1",
},
Version = "1.14",
},
NetworkId = yandex_vpc_network.Network_resource_name.Id,
NodeServiceAccountId = yandex_iam_service_account.Node_service_account_resource_name.Id,
ReleaseChannel = "STABLE",
ServiceAccountId = yandex_iam_service_account.Service_account_resource_name.Id,
});
}
}
package main
import (
"github.com/pulumi/pulumi-yandex/sdk/go/yandex"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := yandex.NewKubernetesCluster(ctx, "regionalClusterResourceName", &yandex.KubernetesClusterArgs{
Description: pulumi.String("description"),
Labels: pulumi.StringMap{
"my_key": pulumi.String("my_value"),
"my_other_key": pulumi.String("my_other_value"),
},
Master: &KubernetesClusterMasterArgs{
MaintenancePolicy: &KubernetesClusterMasterMaintenancePolicyArgs{
AutoUpgrade: pulumi.Bool(true),
MaintenanceWindow: []map[string]interface{}{
map[string]interface{}{
"day": "monday",
"duration": "3h",
"startTime": "15:00",
},
map[string]interface{}{
"day": "friday",
"duration": "4h30m",
"startTime": "10:00",
},
},
},
PublicIp: pulumi.Bool(true),
Regional: &KubernetesClusterMasterRegionalArgs{
Location: []map[string]interface{}{
map[string]interface{}{
"subnetId": yandex_vpc_subnet.Subnet_a_resource_name.Id,
"zone": yandex_vpc_subnet.Subnet_a_resource_name.Zone,
},
map[string]interface{}{
"subnetId": yandex_vpc_subnet.Subnet_b_resource_name.Id,
"zone": yandex_vpc_subnet.Subnet_b_resource_name.Zone,
},
map[string]interface{}{
"subnetId": yandex_vpc_subnet.Subnet_c_resource_name.Id,
"zone": yandex_vpc_subnet.Subnet_c_resource_name.Zone,
},
},
Region: pulumi.String("ru-central1"),
},
Version: pulumi.String("1.14"),
},
NetworkId: pulumi.Any(yandex_vpc_network.Network_resource_name.Id),
NodeServiceAccountId: pulumi.Any(yandex_iam_service_account.Node_service_account_resource_name.Id),
ReleaseChannel: pulumi.String("STABLE"),
ServiceAccountId: pulumi.Any(yandex_iam_service_account.Service_account_resource_name.Id),
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_yandex as yandex
regional_cluster_resource_name = yandex.KubernetesCluster("regionalClusterResourceName",
description="description",
labels={
"my_key": "my_value",
"my_other_key": "my_other_value",
},
master=yandex.KubernetesClusterMasterArgs(
maintenance_policy=yandex.KubernetesClusterMasterMaintenancePolicyArgs(
auto_upgrade=True,
maintenance_window=[
{
"day": "monday",
"duration": "3h",
"startTime": "15:00",
},
{
"day": "friday",
"duration": "4h30m",
"startTime": "10:00",
},
],
),
public_ip=True,
regional=yandex.KubernetesClusterMasterRegionalArgs(
location=[
{
"subnetId": yandex_vpc_subnet["subnet_a_resource_name"]["id"],
"zone": yandex_vpc_subnet["subnet_a_resource_name"]["zone"],
},
{
"subnetId": yandex_vpc_subnet["subnet_b_resource_name"]["id"],
"zone": yandex_vpc_subnet["subnet_b_resource_name"]["zone"],
},
{
"subnetId": yandex_vpc_subnet["subnet_c_resource_name"]["id"],
"zone": yandex_vpc_subnet["subnet_c_resource_name"]["zone"],
},
],
region="ru-central1",
),
version="1.14",
),
network_id=yandex_vpc_network["network_resource_name"]["id"],
node_service_account_id=yandex_iam_service_account["node_service_account_resource_name"]["id"],
release_channel="STABLE",
service_account_id=yandex_iam_service_account["service_account_resource_name"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@pulumi/yandex";
const regionalClusterResourceName = new yandex.KubernetesCluster("regional_cluster_resource_name", {
description: "description",
labels: {
my_key: "my_value",
my_other_key: "my_other_value",
},
master: {
maintenancePolicy: {
autoUpgrade: true,
maintenanceWindows: [
{
day: "monday",
duration: "3h",
startTime: "15:00",
},
{
day: "friday",
duration: "4h30m",
startTime: "10:00",
},
],
},
publicIp: true,
regional: {
locations: [
{
subnetId: yandex_vpc_subnet_subnet_a_resource_name.id,
zone: yandex_vpc_subnet_subnet_a_resource_name.zone,
},
{
subnetId: yandex_vpc_subnet_subnet_b_resource_name.id,
zone: yandex_vpc_subnet_subnet_b_resource_name.zone,
},
{
subnetId: yandex_vpc_subnet_subnet_c_resource_name.id,
zone: yandex_vpc_subnet_subnet_c_resource_name.zone,
},
],
region: "ru-central1",
},
version: "1.14",
},
networkId: yandex_vpc_network_network_resource_name.id,
nodeServiceAccountId: yandex_iam_service_account_node_service_account_resource_name.id,
releaseChannel: "STABLE",
serviceAccountId: yandex_iam_service_account_service_account_resource_name.id,
});
Coming soon!
Create KubernetesCluster Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new KubernetesCluster(name: string, args: KubernetesClusterArgs, opts?: CustomResourceOptions);
@overload
def KubernetesCluster(resource_name: str,
args: KubernetesClusterArgs,
opts: Optional[ResourceOptions] = None)
@overload
def KubernetesCluster(resource_name: str,
opts: Optional[ResourceOptions] = None,
node_service_account_id: Optional[str] = None,
master: Optional[KubernetesClusterMasterArgs] = None,
network_id: Optional[str] = None,
service_account_id: Optional[str] = None,
kms_provider: Optional[KubernetesClusterKmsProviderArgs] = None,
labels: Optional[Mapping[str, str]] = None,
network_implementation: Optional[KubernetesClusterNetworkImplementationArgs] = None,
network_policy_provider: Optional[str] = None,
description: Optional[str] = None,
cluster_ipv6_range: Optional[str] = None,
name: Optional[str] = None,
node_ipv4_cidr_mask_size: Optional[int] = None,
cluster_ipv4_range: Optional[str] = None,
release_channel: Optional[str] = None,
folder_id: Optional[str] = None,
service_ipv4_range: Optional[str] = None,
service_ipv6_range: Optional[str] = None)
func NewKubernetesCluster(ctx *Context, name string, args KubernetesClusterArgs, opts ...ResourceOption) (*KubernetesCluster, error)
public KubernetesCluster(string name, KubernetesClusterArgs args, CustomResourceOptions? opts = null)
public KubernetesCluster(String name, KubernetesClusterArgs args)
public KubernetesCluster(String name, KubernetesClusterArgs args, CustomResourceOptions options)
type: yandex:KubernetesCluster
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 KubernetesClusterArgs
- 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 KubernetesClusterArgs
- 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 KubernetesClusterArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args KubernetesClusterArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args KubernetesClusterArgs
- 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 kubernetesClusterResource = new Yandex.KubernetesCluster("kubernetesClusterResource", new()
{
NodeServiceAccountId = "string",
Master = new Yandex.Inputs.KubernetesClusterMasterArgs
{
ClusterCaCertificate = "string",
ExternalV4Address = "string",
ExternalV4Endpoint = "string",
InternalV4Address = "string",
InternalV4Endpoint = "string",
MaintenancePolicy = new Yandex.Inputs.KubernetesClusterMasterMaintenancePolicyArgs
{
AutoUpgrade = false,
MaintenanceWindows = new[]
{
new Yandex.Inputs.KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs
{
Duration = "string",
StartTime = "string",
Day = "string",
},
},
},
PublicIp = false,
Regional = new Yandex.Inputs.KubernetesClusterMasterRegionalArgs
{
Region = "string",
Locations = new[]
{
new Yandex.Inputs.KubernetesClusterMasterRegionalLocationArgs
{
SubnetId = "string",
Zone = "string",
},
},
},
SecurityGroupIds = new[]
{
"string",
},
Version = "string",
VersionInfos = new[]
{
new Yandex.Inputs.KubernetesClusterMasterVersionInfoArgs
{
CurrentVersion = "string",
NewRevisionAvailable = false,
NewRevisionSummary = "string",
VersionDeprecated = false,
},
},
Zonal = new Yandex.Inputs.KubernetesClusterMasterZonalArgs
{
SubnetId = "string",
Zone = "string",
},
},
NetworkId = "string",
ServiceAccountId = "string",
KmsProvider = new Yandex.Inputs.KubernetesClusterKmsProviderArgs
{
KeyId = "string",
},
Labels =
{
{ "string", "string" },
},
NetworkImplementation = new Yandex.Inputs.KubernetesClusterNetworkImplementationArgs
{
Cilium = null,
},
NetworkPolicyProvider = "string",
Description = "string",
ClusterIpv6Range = "string",
Name = "string",
NodeIpv4CidrMaskSize = 0,
ClusterIpv4Range = "string",
ReleaseChannel = "string",
FolderId = "string",
ServiceIpv4Range = "string",
ServiceIpv6Range = "string",
});
example, err := yandex.NewKubernetesCluster(ctx, "kubernetesClusterResource", &yandex.KubernetesClusterArgs{
NodeServiceAccountId: pulumi.String("string"),
Master: &yandex.KubernetesClusterMasterArgs{
ClusterCaCertificate: pulumi.String("string"),
ExternalV4Address: pulumi.String("string"),
ExternalV4Endpoint: pulumi.String("string"),
InternalV4Address: pulumi.String("string"),
InternalV4Endpoint: pulumi.String("string"),
MaintenancePolicy: &yandex.KubernetesClusterMasterMaintenancePolicyArgs{
AutoUpgrade: pulumi.Bool(false),
MaintenanceWindows: yandex.KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArray{
&yandex.KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs{
Duration: pulumi.String("string"),
StartTime: pulumi.String("string"),
Day: pulumi.String("string"),
},
},
},
PublicIp: pulumi.Bool(false),
Regional: &yandex.KubernetesClusterMasterRegionalArgs{
Region: pulumi.String("string"),
Locations: yandex.KubernetesClusterMasterRegionalLocationArray{
&yandex.KubernetesClusterMasterRegionalLocationArgs{
SubnetId: pulumi.String("string"),
Zone: pulumi.String("string"),
},
},
},
SecurityGroupIds: pulumi.StringArray{
pulumi.String("string"),
},
Version: pulumi.String("string"),
VersionInfos: yandex.KubernetesClusterMasterVersionInfoArray{
&yandex.KubernetesClusterMasterVersionInfoArgs{
CurrentVersion: pulumi.String("string"),
NewRevisionAvailable: pulumi.Bool(false),
NewRevisionSummary: pulumi.String("string"),
VersionDeprecated: pulumi.Bool(false),
},
},
Zonal: &yandex.KubernetesClusterMasterZonalArgs{
SubnetId: pulumi.String("string"),
Zone: pulumi.String("string"),
},
},
NetworkId: pulumi.String("string"),
ServiceAccountId: pulumi.String("string"),
KmsProvider: &yandex.KubernetesClusterKmsProviderArgs{
KeyId: pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
NetworkImplementation: &yandex.KubernetesClusterNetworkImplementationArgs{
Cilium: &yandex.KubernetesClusterNetworkImplementationCiliumArgs{},
},
NetworkPolicyProvider: pulumi.String("string"),
Description: pulumi.String("string"),
ClusterIpv6Range: pulumi.String("string"),
Name: pulumi.String("string"),
NodeIpv4CidrMaskSize: pulumi.Int(0),
ClusterIpv4Range: pulumi.String("string"),
ReleaseChannel: pulumi.String("string"),
FolderId: pulumi.String("string"),
ServiceIpv4Range: pulumi.String("string"),
ServiceIpv6Range: pulumi.String("string"),
})
var kubernetesClusterResource = new KubernetesCluster("kubernetesClusterResource", KubernetesClusterArgs.builder()
.nodeServiceAccountId("string")
.master(KubernetesClusterMasterArgs.builder()
.clusterCaCertificate("string")
.externalV4Address("string")
.externalV4Endpoint("string")
.internalV4Address("string")
.internalV4Endpoint("string")
.maintenancePolicy(KubernetesClusterMasterMaintenancePolicyArgs.builder()
.autoUpgrade(false)
.maintenanceWindows(KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs.builder()
.duration("string")
.startTime("string")
.day("string")
.build())
.build())
.publicIp(false)
.regional(KubernetesClusterMasterRegionalArgs.builder()
.region("string")
.locations(KubernetesClusterMasterRegionalLocationArgs.builder()
.subnetId("string")
.zone("string")
.build())
.build())
.securityGroupIds("string")
.version("string")
.versionInfos(KubernetesClusterMasterVersionInfoArgs.builder()
.currentVersion("string")
.newRevisionAvailable(false)
.newRevisionSummary("string")
.versionDeprecated(false)
.build())
.zonal(KubernetesClusterMasterZonalArgs.builder()
.subnetId("string")
.zone("string")
.build())
.build())
.networkId("string")
.serviceAccountId("string")
.kmsProvider(KubernetesClusterKmsProviderArgs.builder()
.keyId("string")
.build())
.labels(Map.of("string", "string"))
.networkImplementation(KubernetesClusterNetworkImplementationArgs.builder()
.cilium()
.build())
.networkPolicyProvider("string")
.description("string")
.clusterIpv6Range("string")
.name("string")
.nodeIpv4CidrMaskSize(0)
.clusterIpv4Range("string")
.releaseChannel("string")
.folderId("string")
.serviceIpv4Range("string")
.serviceIpv6Range("string")
.build());
kubernetes_cluster_resource = yandex.KubernetesCluster("kubernetesClusterResource",
node_service_account_id="string",
master={
"cluster_ca_certificate": "string",
"external_v4_address": "string",
"external_v4_endpoint": "string",
"internal_v4_address": "string",
"internal_v4_endpoint": "string",
"maintenance_policy": {
"auto_upgrade": False,
"maintenance_windows": [{
"duration": "string",
"start_time": "string",
"day": "string",
}],
},
"public_ip": False,
"regional": {
"region": "string",
"locations": [{
"subnet_id": "string",
"zone": "string",
}],
},
"security_group_ids": ["string"],
"version": "string",
"version_infos": [{
"current_version": "string",
"new_revision_available": False,
"new_revision_summary": "string",
"version_deprecated": False,
}],
"zonal": {
"subnet_id": "string",
"zone": "string",
},
},
network_id="string",
service_account_id="string",
kms_provider={
"key_id": "string",
},
labels={
"string": "string",
},
network_implementation={
"cilium": {},
},
network_policy_provider="string",
description="string",
cluster_ipv6_range="string",
name="string",
node_ipv4_cidr_mask_size=0,
cluster_ipv4_range="string",
release_channel="string",
folder_id="string",
service_ipv4_range="string",
service_ipv6_range="string")
const kubernetesClusterResource = new yandex.KubernetesCluster("kubernetesClusterResource", {
nodeServiceAccountId: "string",
master: {
clusterCaCertificate: "string",
externalV4Address: "string",
externalV4Endpoint: "string",
internalV4Address: "string",
internalV4Endpoint: "string",
maintenancePolicy: {
autoUpgrade: false,
maintenanceWindows: [{
duration: "string",
startTime: "string",
day: "string",
}],
},
publicIp: false,
regional: {
region: "string",
locations: [{
subnetId: "string",
zone: "string",
}],
},
securityGroupIds: ["string"],
version: "string",
versionInfos: [{
currentVersion: "string",
newRevisionAvailable: false,
newRevisionSummary: "string",
versionDeprecated: false,
}],
zonal: {
subnetId: "string",
zone: "string",
},
},
networkId: "string",
serviceAccountId: "string",
kmsProvider: {
keyId: "string",
},
labels: {
string: "string",
},
networkImplementation: {
cilium: {},
},
networkPolicyProvider: "string",
description: "string",
clusterIpv6Range: "string",
name: "string",
nodeIpv4CidrMaskSize: 0,
clusterIpv4Range: "string",
releaseChannel: "string",
folderId: "string",
serviceIpv4Range: "string",
serviceIpv6Range: "string",
});
type: yandex:KubernetesCluster
properties:
clusterIpv4Range: string
clusterIpv6Range: string
description: string
folderId: string
kmsProvider:
keyId: string
labels:
string: string
master:
clusterCaCertificate: string
externalV4Address: string
externalV4Endpoint: string
internalV4Address: string
internalV4Endpoint: string
maintenancePolicy:
autoUpgrade: false
maintenanceWindows:
- day: string
duration: string
startTime: string
publicIp: false
regional:
locations:
- subnetId: string
zone: string
region: string
securityGroupIds:
- string
version: string
versionInfos:
- currentVersion: string
newRevisionAvailable: false
newRevisionSummary: string
versionDeprecated: false
zonal:
subnetId: string
zone: string
name: string
networkId: string
networkImplementation:
cilium: {}
networkPolicyProvider: string
nodeIpv4CidrMaskSize: 0
nodeServiceAccountId: string
releaseChannel: string
serviceAccountId: string
serviceIpv4Range: string
serviceIpv6Range: string
KubernetesCluster 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 KubernetesCluster resource accepts the following input properties:
- Master
Kubernetes
Cluster Master - Kubernetes master configuration options. The structure is documented below.
- Network
Id string - The ID of the cluster network.
- Node
Service stringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- Service
Account stringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - Cluster
Ipv4Range string - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- Cluster
Ipv6Range string - Identical to cluster_ipv4_range but for IPv6 protocol.
- Description string
- A description of the Kubernetes cluster.
- Folder
Id string - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- Kms
Provider KubernetesCluster Kms Provider - cluster KMS provider parameters.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Kubernetes cluster.
- Name string
- Name of a specific Kubernetes cluster.
- Network
Implementation KubernetesCluster Network Implementation - (Optional) Network Implementation options. The structure is documented below.
- Network
Policy stringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - Node
Ipv4Cidr intMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- Release
Channel string - Cluster release channel.
- Service
Ipv4Range string - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- Service
Ipv6Range string - Identical to service_ipv4_range but for IPv6 protocol.
- Master
Kubernetes
Cluster Master Args - Kubernetes master configuration options. The structure is documented below.
- Network
Id string - The ID of the cluster network.
- Node
Service stringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- Service
Account stringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - Cluster
Ipv4Range string - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- Cluster
Ipv6Range string - Identical to cluster_ipv4_range but for IPv6 protocol.
- Description string
- A description of the Kubernetes cluster.
- Folder
Id string - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- Kms
Provider KubernetesCluster Kms Provider Args - cluster KMS provider parameters.
- Labels map[string]string
- A set of key/value label pairs to assign to the Kubernetes cluster.
- Name string
- Name of a specific Kubernetes cluster.
- Network
Implementation KubernetesCluster Network Implementation Args - (Optional) Network Implementation options. The structure is documented below.
- Network
Policy stringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - Node
Ipv4Cidr intMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- Release
Channel string - Cluster release channel.
- Service
Ipv4Range string - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- Service
Ipv6Range string - Identical to service_ipv4_range but for IPv6 protocol.
- master
Kubernetes
Cluster Master - Kubernetes master configuration options. The structure is documented below.
- network
Id String - The ID of the cluster network.
- node
Service StringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- service
Account StringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - cluster
Ipv4Range String - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster
Ipv6Range String - Identical to cluster_ipv4_range but for IPv6 protocol.
- description String
- A description of the Kubernetes cluster.
- folder
Id String - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- kms
Provider KubernetesCluster Kms Provider - cluster KMS provider parameters.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Kubernetes cluster.
- name String
- Name of a specific Kubernetes cluster.
- network
Implementation KubernetesCluster Network Implementation - (Optional) Network Implementation options. The structure is documented below.
- network
Policy StringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - node
Ipv4Cidr IntegerMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- release
Channel String - Cluster release channel.
- service
Ipv4Range String - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service
Ipv6Range String - Identical to service_ipv4_range but for IPv6 protocol.
- master
Kubernetes
Cluster Master - Kubernetes master configuration options. The structure is documented below.
- network
Id string - The ID of the cluster network.
- node
Service stringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- service
Account stringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - cluster
Ipv4Range string - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster
Ipv6Range string - Identical to cluster_ipv4_range but for IPv6 protocol.
- description string
- A description of the Kubernetes cluster.
- folder
Id string - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- kms
Provider KubernetesCluster Kms Provider - cluster KMS provider parameters.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Kubernetes cluster.
- name string
- Name of a specific Kubernetes cluster.
- network
Implementation KubernetesCluster Network Implementation - (Optional) Network Implementation options. The structure is documented below.
- network
Policy stringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - node
Ipv4Cidr numberMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- release
Channel string - Cluster release channel.
- service
Ipv4Range string - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service
Ipv6Range string - Identical to service_ipv4_range but for IPv6 protocol.
- master
Kubernetes
Cluster Master Args - Kubernetes master configuration options. The structure is documented below.
- network_
id str - The ID of the cluster network.
- node_
service_ straccount_ id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- service_
account_ strid - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - cluster_
ipv4_ strrange - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster_
ipv6_ strrange - Identical to cluster_ipv4_range but for IPv6 protocol.
- description str
- A description of the Kubernetes cluster.
- folder_
id str - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- kms_
provider KubernetesCluster Kms Provider Args - cluster KMS provider parameters.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Kubernetes cluster.
- name str
- Name of a specific Kubernetes cluster.
- network_
implementation KubernetesCluster Network Implementation Args - (Optional) Network Implementation options. The structure is documented below.
- network_
policy_ strprovider - Network policy provider for the cluster. Possible values:
CALICO
. - node_
ipv4_ intcidr_ mask_ size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- release_
channel str - Cluster release channel.
- service_
ipv4_ strrange - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service_
ipv6_ strrange - Identical to service_ipv4_range but for IPv6 protocol.
- master Property Map
- Kubernetes master configuration options. The structure is documented below.
- network
Id String - The ID of the cluster network.
- node
Service StringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- service
Account StringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - cluster
Ipv4Range String - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster
Ipv6Range String - Identical to cluster_ipv4_range but for IPv6 protocol.
- description String
- A description of the Kubernetes cluster.
- folder
Id String - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- kms
Provider Property Map - cluster KMS provider parameters.
- labels Map<String>
- A set of key/value label pairs to assign to the Kubernetes cluster.
- name String
- Name of a specific Kubernetes cluster.
- network
Implementation Property Map - (Optional) Network Implementation options. The structure is documented below.
- network
Policy StringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - node
Ipv4Cidr NumberMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- release
Channel String - Cluster release channel.
- service
Ipv4Range String - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service
Ipv6Range String - Identical to service_ipv4_range but for IPv6 protocol.
Outputs
All input properties are implicitly available as output properties. Additionally, the KubernetesCluster resource produces the following output properties:
- Created
At string - (Computed) The Kubernetes cluster creation timestamp.
- Health string
- (Computed) Health of the Kubernetes cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Group stringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- Status string
- (Computed)Status of the Kubernetes cluster.
- Created
At string - (Computed) The Kubernetes cluster creation timestamp.
- Health string
- (Computed) Health of the Kubernetes cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Group stringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- Status string
- (Computed)Status of the Kubernetes cluster.
- created
At String - (Computed) The Kubernetes cluster creation timestamp.
- health String
- (Computed) Health of the Kubernetes cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Group StringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- status String
- (Computed)Status of the Kubernetes cluster.
- created
At string - (Computed) The Kubernetes cluster creation timestamp.
- health string
- (Computed) Health of the Kubernetes cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Group stringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- status string
- (Computed)Status of the Kubernetes cluster.
- created_
at str - (Computed) The Kubernetes cluster creation timestamp.
- health str
- (Computed) Health of the Kubernetes cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- log_
group_ strid - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- status str
- (Computed)Status of the Kubernetes cluster.
- created
At String - (Computed) The Kubernetes cluster creation timestamp.
- health String
- (Computed) Health of the Kubernetes cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Group StringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- status String
- (Computed)Status of the Kubernetes cluster.
Look up Existing KubernetesCluster Resource
Get an existing KubernetesCluster 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?: KubernetesClusterState, opts?: CustomResourceOptions): KubernetesCluster
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cluster_ipv4_range: Optional[str] = None,
cluster_ipv6_range: Optional[str] = None,
created_at: Optional[str] = None,
description: Optional[str] = None,
folder_id: Optional[str] = None,
health: Optional[str] = None,
kms_provider: Optional[KubernetesClusterKmsProviderArgs] = None,
labels: Optional[Mapping[str, str]] = None,
log_group_id: Optional[str] = None,
master: Optional[KubernetesClusterMasterArgs] = None,
name: Optional[str] = None,
network_id: Optional[str] = None,
network_implementation: Optional[KubernetesClusterNetworkImplementationArgs] = None,
network_policy_provider: Optional[str] = None,
node_ipv4_cidr_mask_size: Optional[int] = None,
node_service_account_id: Optional[str] = None,
release_channel: Optional[str] = None,
service_account_id: Optional[str] = None,
service_ipv4_range: Optional[str] = None,
service_ipv6_range: Optional[str] = None,
status: Optional[str] = None) -> KubernetesCluster
func GetKubernetesCluster(ctx *Context, name string, id IDInput, state *KubernetesClusterState, opts ...ResourceOption) (*KubernetesCluster, error)
public static KubernetesCluster Get(string name, Input<string> id, KubernetesClusterState? state, CustomResourceOptions? opts = null)
public static KubernetesCluster get(String name, Output<String> id, KubernetesClusterState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Cluster
Ipv4Range string - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- Cluster
Ipv6Range string - Identical to cluster_ipv4_range but for IPv6 protocol.
- Created
At string - (Computed) The Kubernetes cluster creation timestamp.
- Description string
- A description of the Kubernetes cluster.
- Folder
Id string - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- Health string
- (Computed) Health of the Kubernetes cluster.
- Kms
Provider KubernetesCluster Kms Provider - cluster KMS provider parameters.
- Labels Dictionary<string, string>
- A set of key/value label pairs to assign to the Kubernetes cluster.
- Log
Group stringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- Master
Kubernetes
Cluster Master - Kubernetes master configuration options. The structure is documented below.
- Name string
- Name of a specific Kubernetes cluster.
- Network
Id string - The ID of the cluster network.
- Network
Implementation KubernetesCluster Network Implementation - (Optional) Network Implementation options. The structure is documented below.
- Network
Policy stringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - Node
Ipv4Cidr intMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- Node
Service stringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- Release
Channel string - Cluster release channel.
- Service
Account stringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - Service
Ipv4Range string - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- Service
Ipv6Range string - Identical to service_ipv4_range but for IPv6 protocol.
- Status string
- (Computed)Status of the Kubernetes cluster.
- Cluster
Ipv4Range string - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- Cluster
Ipv6Range string - Identical to cluster_ipv4_range but for IPv6 protocol.
- Created
At string - (Computed) The Kubernetes cluster creation timestamp.
- Description string
- A description of the Kubernetes cluster.
- Folder
Id string - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- Health string
- (Computed) Health of the Kubernetes cluster.
- Kms
Provider KubernetesCluster Kms Provider Args - cluster KMS provider parameters.
- Labels map[string]string
- A set of key/value label pairs to assign to the Kubernetes cluster.
- Log
Group stringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- Master
Kubernetes
Cluster Master Args - Kubernetes master configuration options. The structure is documented below.
- Name string
- Name of a specific Kubernetes cluster.
- Network
Id string - The ID of the cluster network.
- Network
Implementation KubernetesCluster Network Implementation Args - (Optional) Network Implementation options. The structure is documented below.
- Network
Policy stringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - Node
Ipv4Cidr intMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- Node
Service stringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- Release
Channel string - Cluster release channel.
- Service
Account stringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - Service
Ipv4Range string - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- Service
Ipv6Range string - Identical to service_ipv4_range but for IPv6 protocol.
- Status string
- (Computed)Status of the Kubernetes cluster.
- cluster
Ipv4Range String - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster
Ipv6Range String - Identical to cluster_ipv4_range but for IPv6 protocol.
- created
At String - (Computed) The Kubernetes cluster creation timestamp.
- description String
- A description of the Kubernetes cluster.
- folder
Id String - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- health String
- (Computed) Health of the Kubernetes cluster.
- kms
Provider KubernetesCluster Kms Provider - cluster KMS provider parameters.
- labels Map<String,String>
- A set of key/value label pairs to assign to the Kubernetes cluster.
- log
Group StringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- master
Kubernetes
Cluster Master - Kubernetes master configuration options. The structure is documented below.
- name String
- Name of a specific Kubernetes cluster.
- network
Id String - The ID of the cluster network.
- network
Implementation KubernetesCluster Network Implementation - (Optional) Network Implementation options. The structure is documented below.
- network
Policy StringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - node
Ipv4Cidr IntegerMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- node
Service StringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- release
Channel String - Cluster release channel.
- service
Account StringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - service
Ipv4Range String - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service
Ipv6Range String - Identical to service_ipv4_range but for IPv6 protocol.
- status String
- (Computed)Status of the Kubernetes cluster.
- cluster
Ipv4Range string - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster
Ipv6Range string - Identical to cluster_ipv4_range but for IPv6 protocol.
- created
At string - (Computed) The Kubernetes cluster creation timestamp.
- description string
- A description of the Kubernetes cluster.
- folder
Id string - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- health string
- (Computed) Health of the Kubernetes cluster.
- kms
Provider KubernetesCluster Kms Provider - cluster KMS provider parameters.
- labels {[key: string]: string}
- A set of key/value label pairs to assign to the Kubernetes cluster.
- log
Group stringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- master
Kubernetes
Cluster Master - Kubernetes master configuration options. The structure is documented below.
- name string
- Name of a specific Kubernetes cluster.
- network
Id string - The ID of the cluster network.
- network
Implementation KubernetesCluster Network Implementation - (Optional) Network Implementation options. The structure is documented below.
- network
Policy stringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - node
Ipv4Cidr numberMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- node
Service stringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- release
Channel string - Cluster release channel.
- service
Account stringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - service
Ipv4Range string - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service
Ipv6Range string - Identical to service_ipv4_range but for IPv6 protocol.
- status string
- (Computed)Status of the Kubernetes cluster.
- cluster_
ipv4_ strrange - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster_
ipv6_ strrange - Identical to cluster_ipv4_range but for IPv6 protocol.
- created_
at str - (Computed) The Kubernetes cluster creation timestamp.
- description str
- A description of the Kubernetes cluster.
- folder_
id str - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- health str
- (Computed) Health of the Kubernetes cluster.
- kms_
provider KubernetesCluster Kms Provider Args - cluster KMS provider parameters.
- labels Mapping[str, str]
- A set of key/value label pairs to assign to the Kubernetes cluster.
- log_
group_ strid - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- master
Kubernetes
Cluster Master Args - Kubernetes master configuration options. The structure is documented below.
- name str
- Name of a specific Kubernetes cluster.
- network_
id str - The ID of the cluster network.
- network_
implementation KubernetesCluster Network Implementation Args - (Optional) Network Implementation options. The structure is documented below.
- network_
policy_ strprovider - Network policy provider for the cluster. Possible values:
CALICO
. - node_
ipv4_ intcidr_ mask_ size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- node_
service_ straccount_ id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- release_
channel str - Cluster release channel.
- service_
account_ strid - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - service_
ipv4_ strrange - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service_
ipv6_ strrange - Identical to service_ipv4_range but for IPv6 protocol.
- status str
- (Computed)Status of the Kubernetes cluster.
- cluster
Ipv4Range String - CIDR block. IP range for allocating pod addresses. It should not overlap with any subnet in the network the Kubernetes cluster located in. Static routes will be set up for this CIDR blocks in node subnets.
- cluster
Ipv6Range String - Identical to cluster_ipv4_range but for IPv6 protocol.
- created
At String - (Computed) The Kubernetes cluster creation timestamp.
- description String
- A description of the Kubernetes cluster.
- folder
Id String - The ID of the folder that the Kubernetes cluster belongs to. If it is not provided, the default provider folder is used.
- health String
- (Computed) Health of the Kubernetes cluster.
- kms
Provider Property Map - cluster KMS provider parameters.
- labels Map<String>
- A set of key/value label pairs to assign to the Kubernetes cluster.
- log
Group StringId - Log group where cluster stores cluster system logs, like audit, events, or controlplane logs.
- master Property Map
- Kubernetes master configuration options. The structure is documented below.
- name String
- Name of a specific Kubernetes cluster.
- network
Id String - The ID of the cluster network.
- network
Implementation Property Map - (Optional) Network Implementation options. The structure is documented below.
- network
Policy StringProvider - Network policy provider for the cluster. Possible values:
CALICO
. - node
Ipv4Cidr NumberMask Size - Size of the masks that are assigned to each node in the cluster. Effectively limits maximum number of pods for each node.
- node
Service StringAccount Id - Service account to be used by the worker nodes of the Kubernetes cluster to access Container Registry or to push node logs and metrics.
- release
Channel String - Cluster release channel.
- service
Account StringId - Service account to be used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster. Selected service account should have
edit
role on the folder where the Kubernetes cluster will be located and on the folder where selected network resides. - service
Ipv4Range String - CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be allocated from. It should not overlap with any subnet in the network the Kubernetes cluster located in.
- service
Ipv6Range String - Identical to service_ipv4_range but for IPv6 protocol.
- status String
- (Computed)Status of the Kubernetes cluster.
Supporting Types
KubernetesClusterKmsProvider, KubernetesClusterKmsProviderArgs
- Key
Id string - KMS key ID.
- Key
Id string - KMS key ID.
- key
Id String - KMS key ID.
- key
Id string - KMS key ID.
- key_
id str - KMS key ID.
- key
Id String - KMS key ID.
KubernetesClusterMaster, KubernetesClusterMasterArgs
- Cluster
Ca stringCertificate - (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
- External
V4Address string - (Computed) An IPv4 external network address that is assigned to the master.
- External
V4Endpoint string - (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
- Internal
V4Address string - (Computed) An IPv4 internal network address that is assigned to the master.
- Internal
V4Endpoint string - (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
- Maintenance
Policy KubernetesCluster Master Maintenance Policy - (Optional) (Computed) Maintenance policy for Kubernetes master. If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- Public
Ip bool - (Optional) (Computed) Boolean flag. When
true
, Kubernetes master will have visible ipv4 address. - Regional
Kubernetes
Cluster Master Regional - (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
- Security
Group List<string>Ids - (Optional) List of security group IDs to which the Kubernetes cluster belongs.
- Version string
- (Optional) (Computed) Version of Kubernetes that will be used for master.
- Version
Infos List<KubernetesCluster Master Version Info> - (Computed) Information about cluster version. The structure is documented below.
- Zonal
Kubernetes
Cluster Master Zonal - (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
- Cluster
Ca stringCertificate - (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
- External
V4Address string - (Computed) An IPv4 external network address that is assigned to the master.
- External
V4Endpoint string - (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
- Internal
V4Address string - (Computed) An IPv4 internal network address that is assigned to the master.
- Internal
V4Endpoint string - (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
- Maintenance
Policy KubernetesCluster Master Maintenance Policy - (Optional) (Computed) Maintenance policy for Kubernetes master. If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- Public
Ip bool - (Optional) (Computed) Boolean flag. When
true
, Kubernetes master will have visible ipv4 address. - Regional
Kubernetes
Cluster Master Regional - (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
- Security
Group []stringIds - (Optional) List of security group IDs to which the Kubernetes cluster belongs.
- Version string
- (Optional) (Computed) Version of Kubernetes that will be used for master.
- Version
Infos []KubernetesCluster Master Version Info - (Computed) Information about cluster version. The structure is documented below.
- Zonal
Kubernetes
Cluster Master Zonal - (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
- cluster
Ca StringCertificate - (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
- external
V4Address String - (Computed) An IPv4 external network address that is assigned to the master.
- external
V4Endpoint String - (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
- internal
V4Address String - (Computed) An IPv4 internal network address that is assigned to the master.
- internal
V4Endpoint String - (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
- maintenance
Policy KubernetesCluster Master Maintenance Policy - (Optional) (Computed) Maintenance policy for Kubernetes master. If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- public
Ip Boolean - (Optional) (Computed) Boolean flag. When
true
, Kubernetes master will have visible ipv4 address. - regional
Kubernetes
Cluster Master Regional - (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
- security
Group List<String>Ids - (Optional) List of security group IDs to which the Kubernetes cluster belongs.
- version String
- (Optional) (Computed) Version of Kubernetes that will be used for master.
- version
Infos List<KubernetesCluster Master Version Info> - (Computed) Information about cluster version. The structure is documented below.
- zonal
Kubernetes
Cluster Master Zonal - (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
- cluster
Ca stringCertificate - (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
- external
V4Address string - (Computed) An IPv4 external network address that is assigned to the master.
- external
V4Endpoint string - (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
- internal
V4Address string - (Computed) An IPv4 internal network address that is assigned to the master.
- internal
V4Endpoint string - (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
- maintenance
Policy KubernetesCluster Master Maintenance Policy - (Optional) (Computed) Maintenance policy for Kubernetes master. If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- public
Ip boolean - (Optional) (Computed) Boolean flag. When
true
, Kubernetes master will have visible ipv4 address. - regional
Kubernetes
Cluster Master Regional - (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
- security
Group string[]Ids - (Optional) List of security group IDs to which the Kubernetes cluster belongs.
- version string
- (Optional) (Computed) Version of Kubernetes that will be used for master.
- version
Infos KubernetesCluster Master Version Info[] - (Computed) Information about cluster version. The structure is documented below.
- zonal
Kubernetes
Cluster Master Zonal - (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
- cluster_
ca_ strcertificate - (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
- external_
v4_ straddress - (Computed) An IPv4 external network address that is assigned to the master.
- external_
v4_ strendpoint - (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
- internal_
v4_ straddress - (Computed) An IPv4 internal network address that is assigned to the master.
- internal_
v4_ strendpoint - (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
- maintenance_
policy KubernetesCluster Master Maintenance Policy - (Optional) (Computed) Maintenance policy for Kubernetes master. If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- public_
ip bool - (Optional) (Computed) Boolean flag. When
true
, Kubernetes master will have visible ipv4 address. - regional
Kubernetes
Cluster Master Regional - (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
- security_
group_ Sequence[str]ids - (Optional) List of security group IDs to which the Kubernetes cluster belongs.
- version str
- (Optional) (Computed) Version of Kubernetes that will be used for master.
- version_
infos Sequence[KubernetesCluster Master Version Info] - (Computed) Information about cluster version. The structure is documented below.
- zonal
Kubernetes
Cluster Master Zonal - (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
- cluster
Ca StringCertificate - (Computed) PEM-encoded public certificate that is the root of trust for the Kubernetes cluster.
- external
V4Address String - (Computed) An IPv4 external network address that is assigned to the master.
- external
V4Endpoint String - (Computed) External endpoint that can be used to access Kubernetes cluster API from the internet (outside of the cloud).
- internal
V4Address String - (Computed) An IPv4 internal network address that is assigned to the master.
- internal
V4Endpoint String - (Computed) Internal endpoint that can be used to connect to the master from cloud networks.
- maintenance
Policy Property Map - (Optional) (Computed) Maintenance policy for Kubernetes master. If policy is omitted, automatic revision upgrades of the kubernetes master are enabled and could happen at any time. Revision upgrades are performed only within the same minor version, e.g. 1.13. Minor version upgrades (e.g. 1.13->1.14) should be performed manually. The structure is documented below.
- public
Ip Boolean - (Optional) (Computed) Boolean flag. When
true
, Kubernetes master will have visible ipv4 address. - regional Property Map
- (Optional) Initialize parameters for Regional Master (highly available master). The structure is documented below.
- security
Group List<String>Ids - (Optional) List of security group IDs to which the Kubernetes cluster belongs.
- version String
- (Optional) (Computed) Version of Kubernetes that will be used for master.
- version
Infos List<Property Map> - (Computed) Information about cluster version. The structure is documented below.
- zonal Property Map
- (Optional) Initialize parameters for Zonal Master (single node master). The structure is documented below.
KubernetesClusterMasterMaintenancePolicy, KubernetesClusterMasterMaintenancePolicyArgs
- Auto
Upgrade bool - (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
- Maintenance
Windows List<KubernetesCluster Master Maintenance Policy Maintenance Window> - (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set,
start_time
andduration
. Please seezonal_cluster_resource_name
config example.
- Auto
Upgrade bool - (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
- Maintenance
Windows []KubernetesCluster Master Maintenance Policy Maintenance Window - (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set,
start_time
andduration
. Please seezonal_cluster_resource_name
config example.
- auto
Upgrade Boolean - (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
- maintenance
Windows List<KubernetesCluster Master Maintenance Policy Maintenance Window> - (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set,
start_time
andduration
. Please seezonal_cluster_resource_name
config example.
- auto
Upgrade boolean - (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
- maintenance
Windows KubernetesCluster Master Maintenance Policy Maintenance Window[] - (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set,
start_time
andduration
. Please seezonal_cluster_resource_name
config example.
- auto_
upgrade bool - (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
- maintenance_
windows Sequence[KubernetesCluster Master Maintenance Policy Maintenance Window] - (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set,
start_time
andduration
. Please seezonal_cluster_resource_name
config example.
- auto
Upgrade Boolean - (Required) Boolean flag that specifies if master can be upgraded automatically. When omitted, default value is TRUE.
- maintenance
Windows List<Property Map> - (Optional) (Computed) This structure specifies maintenance window, when update for master is allowed. When omitted, it defaults to any time.
To specify time of day interval, for all days, one element should be provided, with two fields set,
start_time
andduration
. Please seezonal_cluster_resource_name
config example.
KubernetesClusterMasterMaintenancePolicyMaintenanceWindow, KubernetesClusterMasterMaintenancePolicyMaintenanceWindowArgs
- duration str
- start_
time str - day str
KubernetesClusterMasterRegional, KubernetesClusterMasterRegionalArgs
- Region string
- (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
- Locations
List<Kubernetes
Cluster Master Regional Location> - Array of locations, where master instances will be allocated. The structure is documented below.
- Region string
- (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
- Locations
[]Kubernetes
Cluster Master Regional Location - Array of locations, where master instances will be allocated. The structure is documented below.
- region String
- (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
- locations
List<Kubernetes
Cluster Master Regional Location> - Array of locations, where master instances will be allocated. The structure is documented below.
- region string
- (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
- locations
Kubernetes
Cluster Master Regional Location[] - Array of locations, where master instances will be allocated. The structure is documented below.
- region str
- (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
- locations
Sequence[Kubernetes
Cluster Master Regional Location] - Array of locations, where master instances will be allocated. The structure is documented below.
- region String
- (Required) Name of availability region (e.g. "ru-central1"), where master instances will be allocated.
- locations List<Property Map>
- Array of locations, where master instances will be allocated. The structure is documented below.
KubernetesClusterMasterRegionalLocation, KubernetesClusterMasterRegionalLocationArgs
KubernetesClusterMasterVersionInfo, KubernetesClusterMasterVersionInfoArgs
- Current
Version string - Current Kubernetes version, major.minor (e.g. 1.15).
- bool
- Boolean flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- New
Revision stringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- Version
Deprecated bool - Boolean flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- Current
Version string - Current Kubernetes version, major.minor (e.g. 1.15).
- bool
- Boolean flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- New
Revision stringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- Version
Deprecated bool - Boolean flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current
Version String - Current Kubernetes version, major.minor (e.g. 1.15).
- Boolean
- Boolean flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new
Revision StringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version
Deprecated Boolean - Boolean flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current
Version string - Current Kubernetes version, major.minor (e.g. 1.15).
- boolean
- Boolean flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new
Revision stringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version
Deprecated boolean - Boolean flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current_
version str - Current Kubernetes version, major.minor (e.g. 1.15).
- new_
revision_ boolavailable - Boolean flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new_
revision_ strsummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version_
deprecated bool - Boolean flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
- current
Version String - Current Kubernetes version, major.minor (e.g. 1.15).
- Boolean
- Boolean flag. Newer revisions may include Kubernetes patches (e.g 1.15.1 > 1.15.2) as well as some internal component updates - new features or bug fixes in yandex-specific components either on the master or nodes.
- new
Revision StringSummary - Human readable description of the changes to be applied when updating to the latest revision. Empty if new_revision_available is false.
- version
Deprecated Boolean - Boolean flag. The current version is on the deprecation schedule, component (master or node group) should be upgraded.
KubernetesClusterMasterZonal, KubernetesClusterMasterZonalArgs
KubernetesClusterNetworkImplementation, KubernetesClusterNetworkImplementationArgs
- Cilium
Kubernetes
Cluster Network Implementation Cilium - (Optional) Cilium network implementation configuration. No options exist.
- Cilium
Kubernetes
Cluster Network Implementation Cilium - (Optional) Cilium network implementation configuration. No options exist.
- cilium
Kubernetes
Cluster Network Implementation Cilium - (Optional) Cilium network implementation configuration. No options exist.
- cilium
Kubernetes
Cluster Network Implementation Cilium - (Optional) Cilium network implementation configuration. No options exist.
- cilium
Kubernetes
Cluster Network Implementation Cilium - (Optional) Cilium network implementation configuration. No options exist.
- cilium Property Map
- (Optional) Cilium network implementation configuration. No options exist.
Import
A Managed Kubernetes cluster can be imported using the id
of the resource, e.g.
$ pulumi import yandex:index/kubernetesCluster:KubernetesCluster default cluster_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Yandex pulumi/pulumi-yandex
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
yandex
Terraform Provider.