kubernetes

aliyun/kubernetes/alicloud

Terraform Module HCL ALICLOUD

Terraform module which creates kubernetes(es) on Alibaba Cloud.

Install
module "kubernetes" {
source = "aliyun/kubernetes/alicloud"
version = "2.0.0"
}
plain text: /constructs/tfmod-aliyun-kubernetes-alicloud/install.txt
⭐ Source on GitHub 📦 Registry page
README

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

Inputs (33)
NameTypeDescriptionDefault
number_formatstringThe number format used to output."%02d"
k8s_pod_cidrstringThe kubernetes pod cidr block. It cannot be equals to vpc's or vswitch's and can"172.20.0.0/16"
subscriptionmap(string)A mapping of fields for Prepaid ECS instances created. { "auto_renew": false, "auto_renew_p
k8s_name_prefixstringThe name prefix used to create several kubernetes clusters. Default to variable ""
new_nat_gatewayboolWhether to create a new nat gateway. In this template, a new nat gateway will crtrue
cluster_addonslist(object({ name = strAddon components in kubernetes cluster[]
worker_passwordlist(string)The password of worker ECS instance.[ "Just4Test" ]
install_cloud_monitorboolInstall cloud monitor agent on ECS.true
instance_charge_typestringThe charge type of instance. Choices are 'PostPaid' and 'PrePaid'."PostPaid"
k8s_numbernumberThe number of kubernetes cluster.1
vswitch_name_prefixstringThe vswitch name prefix used to create several new vswitches. Default to variabl""
vswitch_cidrslist(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_typeslist(string)The ecs instance types used to launch worker nodes.[]
k8s_service_cidrstringThe kubernetes service cidr block. It cannot be equals to vpc's or vswitch's or "172.21.0.0/20"
memory_sizenumberMemory size used to fetch instance types.2
master_instance_typeslist(string)The ecs instance types used to launch master nodes.[]
node_cidr_masknumberThe node cidr block to specific how many pods can run on single node. Valid valu24
cpu_policystringkubelet cpu policy. Valid values: 'none','static'. Default to 'none'."none"
proxy_modestringProxy mode is option of kube-proxy. Valid values: 'ipvs','iptables'. Default to "iptables"
example_namestringThe name as prefix used to create resources."tf-example-kubernetes"
Outputs (7)
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.
Resources (8)
alicloud_cs_kubernetesalicloud_cs_kubernetes_node_poolalicloud_eipalicloud_eip_associationalicloud_nat_gatewayalicloud_snat_entryalicloud_vpcalicloud_vswitch
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.0
Cloud ALICLOUD
★ Stars14
Forks25
Total downloads962
Inputs33
Outputs7
Resources8
Examples1
LicenseMIT
Namespacealiyun
Updated