kubernetes
dtoch56/kubernetes/yandex
A terraform module to create a managed Kubernetes cluster on Yandex Cloud.
Yandex.Cloud Kubernetes module Creates a Kubernetes Cluster in Yandex.Cloud. Basic example To create a Kubernetes cluster named my-k8s in Yandex.Cloud with folder id xxx000xxx000xxx000xx: ``hcl module "kubernetes" { source = "dtoch56/kubernetes/yandex" folder_id = "xxx000xxx000xxx000xx" name = "my-k8s-cluster" } ` Requirements | Name | Version | |-------------------------------------------------|---------| | terraform | >= 1.2 | Providers | Name | Version | |-----------------------------------------------------------------------------------------|---------| | yandex-cloud | >= 0.75 | Modules No modules. Resources | Name | Type | |------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Name | Type | Description | Default |
|---|---|---|---|
| network_id | string | The ID of the cluster network. | required |
| master_locations | list(object({ zone = | List of locations where cluster will be created. If list contains only one locat | required |
| folder_id | string | The ID of the folder that the Kubernetes cluster belongs to. | required |
| master_security_group_ids | set(string) | List of security group IDs to which the Kubernetes cluster belongs. | null |
| name | string | Name of a specific Kubernetes cluster. | null |
| master_auto_upgrade | bool | Boolean flag that specifies if master can be upgraded automatically. | true |
| local_subnet_ranges | list(string) | [] | |
| service_ipv4_range | string | CIDR block. IP range Kubernetes service Kubernetes cluster IP addresses will be | null |
| service_account_id | string | ID of existing service account to be used for provisioning Compute Cloud and VPC | null |
| node_service_account_id | string | ID of service account to be used by the worker nodes of the Kubernetes cluster t | null |
| node_service_account_name | string | Name of service account to create to be used by the worker nodes of the Kubernet | null |
| master_region | string | Name of region where cluster will be created. Required for regional cluster, not | null |
| node_groups_default_ssh_keys | map(list(string)) | Map containing SSH keys to install on all Kubernetes node servers by default. | {} |
| node_groups_locations | map(list(object({ subnet_i | Locations of Kubernetes node groups. Use it to override default locations of cer | {} |
| kms_rotation_period | string | Interval between automatic rotations. | "8760h" |
| cluster_ipv6_range | string | Identical to cluster_ipv4_range but for IPv6 protocol. | null |
| ingress_ips | map(object({ zone | List of static IPs to create for Kubernetes ingress controllers | {} |
| master_public_ip | bool | Boolean flag. When true, Kubernetes master will have visible ipv4 address. | true |
| master_maintenance_windows | list(map(string)) | List of structures that specifies maintenance windows, when auto update for | [] |
| whitelist_ips | list(string) | List of VPN IPs to access k8s cluster | [] |
| cluster_ipv4_range | string | CIDR block. IP range for allocating pod addresses. It should not overlap with an | null |
| release_channel | string | Cluster release channel. | "STABLE" |
| network_policy_provider | string | Network policy provider for the cluster. Possible values: CALICO. | null |
ingress_ips — IPs form kubernetes ingress controllersexternal_v4_endpoint — An IPv4 external network address that is assigned to the master.internal_v4_endpoint — An IPv4 internal network address that is assigned to the master.cluster_ca_certificate — PEM-encoded public certificate that is the root of trust for
the Kubernetes cluster.
cluster_id — ID of a new Kubernetes cluster.node_groups — Attributes of yandex_node_group resources created in clusterservice_account_id — ID of service account used for provisioning Compute Cloud and VPC resources
for Kubernetes cluster
node_service_account_id — ID of service account to be used by the worker nodes of the Kubernetes cluster
to access Container R