kubernetes
aliyun/kubernetes/alicloud
Terraform module which creates kubernetes(es) on Alibaba Cloud.
Alibaba Cloud terraform example for kubernetes cluster ====================================================== A terraform example to launching a kubernetes cluster in alibaba cloud. These types of the module resource are supported: - VPC - Subnet - ECS Instance - Security Group - Nat Gateway - Kubernetes Usage ----- This example can specify the following arguments to create user-defined kuberntes cluster alicloud_access_key: The Alicloud Access Key ID alicloud_secret_key: The Alicloud Access Secret Key region: The ID of region in which launching resources k8s_name_prefix: The name prefix of kubernetes cluster k8s_number: The number of kubernetes cluster k8s_worker_number: The number of worker nodes in each kubernetes cluster k8s_pod_cidr: The kubernetes pod cidr block. It cannot be equals
| Name | Type | Description | Default |
|---|---|---|---|
| number_format | string | The number format used to output. | "%02d" |
| k8s_pod_cidr | string | The kubernetes pod cidr block. It cannot be equals to vpc's or vswitch's and can | "172.20.0.0/16" |
| subscription | map(string) | A mapping of fields for Prepaid ECS instances created. | {
"auto_renew": false,
"auto_renew_p |
| k8s_name_prefix | string | The name prefix used to create several kubernetes clusters. Default to variable | "" |
| new_nat_gateway | bool | Whether to create a new nat gateway. In this template, a new nat gateway will cr | true |
| cluster_addons | list(object({ name = str | Addon components in kubernetes cluster | [] |
| worker_password | list(string) | The password of worker ECS instance. | [
"Just4Test"
] |
| install_cloud_monitor | bool | Install cloud monitor agent on ECS. | true |
| instance_charge_type | string | The charge type of instance. Choices are 'PostPaid' and 'PrePaid'. | "PostPaid" |
| k8s_number | number | The number of kubernetes cluster. | 1 |
| vswitch_name_prefix | string | The vswitch name prefix used to create several new vswitches. Default to variabl | "" |
| vswitch_cidrs | list(string) | List of cidr blocks used to create several new vswitches when 'vswitch_ids' is n | [
"10.1.0.0/16",
"10.2.0.0/16",
"1 |
| worker_instance_types | list(string) | The ecs instance types used to launch worker nodes. | [] |
| k8s_service_cidr | string | The kubernetes service cidr block. It cannot be equals to vpc's or vswitch's or | "172.21.0.0/20" |
| memory_size | number | Memory size used to fetch instance types. | 2 |
| master_instance_types | list(string) | The ecs instance types used to launch master nodes. | [] |
| node_cidr_mask | number | The node cidr block to specific how many pods can run on single node. Valid valu | 24 |
| cpu_policy | string | kubelet cpu policy. Valid values: 'none','static'. Default to 'none'. | "none" |
| proxy_mode | string | Proxy mode is option of kube-proxy. Valid values: 'ipvs','iptables'. Default to | "iptables" |
| example_name | string | The name as prefix used to create resources. | "tf-example-kubernetes" |
cluster_id — ID of the kunernetes cluster.security_group_id — ID of the Security Group used to deploy kubernetes cluster.cluster_nodes — List nodes of cluster.this_k8s_node_ids — List ids of of cluster node.vpc_id — The ID of the VPC.vswitch_ids — List ID of the VSwitches.nat_gateway_id — The ID of the NAT Gateway.