k8s
hajowieland/k8s/aws
Terraform module for creating a Kubernetes cluster on Amazon Web Services
Install
README
Terraform Kubernetes on Amazon Web Services This repository contains the Terraform module for creating a simple but ready-to-use Kubernetes Cluster on Amazon Web Services Elastic Kubernetes Service (EKS). It uses the latest available Kubernetes version available in the AWS region and creates a kubeconfig file at completion. - Terraform Kubernetes on Amazon Web Services - Requirements - Features - Notes - Defaults - Runtime - Terraform Inputs - Outputs Requirements You need an AWS account. Features Always uses latest Kubernetes version available at AWS region kubeconfig file generation Authentication via AWS IAM with aws-iam-authenticator (for Linux and macOS) Kubernetes cluster API access is available from workstation IP address only Auto Scaling Group for worker nodes Notes export KUBECON
Inputs (11)
| Name | Type | Description | Default |
|---|---|---|---|
| aws_instance_type | string | AWS EC2 Instance Type (e.g. `t3.medium`) | "t3.medium" |
| enable_amazon | bool | Enable / Disable Amazon Web Services k8s (e.g. `true`) | true |
| random_cluster_suffix | string | Random 6 byte hex suffix for cluster name | "" |
| aws_profile | string | AWS cli profile (e.g. `default`) | "default" |
| eks_nodes | number | EKS Kubernetes worker nodes, desired ASG capacity (e.g. `2`) | 2 |
| eks_max_nodes | number | EKS Kubernetes worker nodes, maximal ASG capacity (e.g. `3`) | 3 |
| aws_subnets | number | List of 8-bit numbers of subnets base_cidr_block | 2 |
| aws_cluster_name | string | AWS ELS cluster name (e.g. `k8s-eks`) | "k8s-eks" |
| aws_region | string | AWS region (e.g. `eu-central-1` => Frankfurt) | "eu-central-1" |
| eks_min_nodes | number | EKS Kubernetes worker nodes, minimal ASG capacity (e.g. `1`) | 1 |
| aws_cidr_block | string | AWS VPC CIDR block (e.g. `10.0.23.0/16`) | "10.0.0.0/16" |
Outputs (2)
config_map_aws_authkubeconfig_path_awsResources (16)
Topics & Tags
Details
Similar packages
Azure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,