k8s

hajowieland/k8s/alicloud

Terraform Module HCL ALICLOUD

Terraform module for creating a Kubernetes cluster on Alibaba Cloud ("aliyun") with latest available version, all RAM roles with their policies and kubeconfig file.

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

Terraform Managed Kubernetes on Alibaba Cloud ("aliyun") This repository contains the Terraform module for creating a simple but ready-to-use managed Kubernetes Cluster on Alibaba Cloud Container Service for Kubernetes (ACK). It uses the latest available Kubernetes version available in the Alibaba Cloud region, creates all necessary RAM roles with its policies and generates a kubeconfig file at completion. - Terraform Kubernetes on Alibaba Cloud - Requirements - Features - Notes - Defaults - Terraform Inputs - Outputs Requirements You need an Alibaba Cloud account. Features Always uses latest Kubernetes version available at Alibaba Cloud region Creates all necessary RAM roles and policies kubeconfig file generation Notes export KUBECONFIG=./kubeconfig_ack in repo root dir to use the genera

Inputs (15)
NameTypeDescriptionDefault
ali_access_keystringAlibaba Cloud access key required
ali_secret_keystringAlibaba Cloud secret key required
ack_namestringAlibaba Managed Kubernetes cluster name (e.g. `k8s-ali`)"k8s-ali"
ack_node_typeslist(string)Alibaba node instance types for worker nodes (e.g. `ecs.sn1.medium` => 2x vCPU 4[ "ecs.sn1.medium" ]
ali_regionstringAlibaba Cloud region (e.g. `eu-central-1` => Frankfurt, Germany)"eu-central-1"
ssh_public_key_pathstringPath to your existing SSH public key file"~/.ssh/id_rsa.pub"
ali_vswitch_cidrslist(string)List of CIDR blocks used to create several new VSwitches[ "10.0.1.0/24", "10.0.2.0/24" ]
enable_alibababoolEnable / Disable Alibaba Cloud k8s (e.g. `true`)true
random_cluster_suffixstringRandom 6 byte hex suffix for cluster name""
ali_vpc_namestringAlibaba Cloud VPC name"k8svpc"
ack_k8s_pod_cidrstringCIDR for Kubernetes pod network"172.20.0.0/16"
ali_vpc_cidrstringAlibaba Cloud VPC CIDR block"10.0.0.0/8"
ack_k8s_cnistringKubernetes CNI plugin to use for networking (e.g. `flannel` or `terway`)"flannel"
ack_node_countnumberAlibaba Managed Kubernetes cluster worker node count (e.g. `[2]`)2
ack_k8s_service_cidrstringCIDR for Kubernetes service network"172.21.0.0/20"
Outputs (2)
alicloud_eip_ip_address
kubeconfig_path_ali
Resources (12)
alicloud_cs_managed_kubernetesalicloud_eipalicloud_eip_associationalicloud_key_pairalicloud_nat_gatewayalicloud_ram_policyalicloud_ram_rolealicloud_ram_role_policy_attachmentalicloud_snat_entryalicloud_vpcalicloud_vswitchrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version1.2.4
Cloud ALICLOUD
★ Stars4
Forks7
Total downloads1.5k
Inputs15
Outputs2
Resources12
LicenseGPL-3.0
Namespacehajowieland
Updated