You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.5 KiB
46 lines
1.5 KiB
module "kubernetes" {
|
|
source = "scholzj/kubernetes/aws"
|
|
|
|
aws_region = "eu-central-1"
|
|
cluster_name = "aws-kubernetes"
|
|
master_instance_type = "t2.medium"
|
|
worker_instance_type = "t2.medium"
|
|
ssh_public_key = "~/.ssh/id_rsa.pub"
|
|
ssh_access_cidr = ["0.0.0.0/0"]
|
|
api_access_cidr = ["0.0.0.0/0"]
|
|
min_worker_count = 3
|
|
max_worker_count = 6
|
|
hosted_zone = "my-domain.com"
|
|
hosted_zone_private = false
|
|
|
|
master_subnet_id = "subnet-8a3517f8"
|
|
worker_subnet_ids = [
|
|
"subnet-8a3517f8",
|
|
"subnet-9b7853f7",
|
|
"subnet-8g9sdfv8",
|
|
]
|
|
|
|
# Tags
|
|
tags = {
|
|
Application = "AWS-Kubernetes"
|
|
}
|
|
|
|
# Tags in a different format for Auto Scaling Group
|
|
tags2 = [
|
|
{
|
|
key = "Application"
|
|
value = "AWS-Kubernetes"
|
|
propagate_at_launch = true
|
|
},
|
|
]
|
|
|
|
addons = [
|
|
"https://raw.githubusercontent.com/scholzj/terraform-aws-kubernetes/master/addons/storage-class.yaml",
|
|
"https://raw.githubusercontent.com/scholzj/terraform-aws-kubernetes/master/addons/csi-driver.yaml",
|
|
"https://raw.githubusercontent.com/scholzj/terraform-aws-kubernetes/master/addons/metrics-server.yaml",
|
|
"https://raw.githubusercontent.com/scholzj/terraform-aws-kubernetes/master/addons/dashboard.yaml",
|
|
"https://raw.githubusercontent.com/scholzj/terraform-aws-kubernetes/master/addons/external-dns.yaml",
|
|
"https://raw.githubusercontent.com/scholzj/terraform-aws-kubernetes/master/addons/autoscaler.yaml",
|
|
]
|
|
}
|
|
|
|
|