mirror of
https://github.com/optim-enterprises-bv/databunker.git
synced 2025-10-29 17:12:22 +00:00
revert some changes in terraform script
This commit is contained in:
@@ -48,16 +48,19 @@ module "vpc" {
|
|||||||
|
|
||||||
module "eks" {
|
module "eks" {
|
||||||
source = "terraform-aws-modules/eks/aws"
|
source = "terraform-aws-modules/eks/aws"
|
||||||
|
version = "17.24.0"
|
||||||
|
|
||||||
cluster_name = "cluster-${var.name_suffix}"
|
cluster_name = "cluster-${var.name_suffix}"
|
||||||
cluster_version = "1.21"
|
cluster_version = "1.21"
|
||||||
subnet_ids = module.vpc.private_subnets
|
#subnet_ids = module.vpc.private_subnets
|
||||||
|
subnets = module.vpc.private_subnets
|
||||||
cluster_endpoint_private_access = "true"
|
cluster_endpoint_private_access = "true"
|
||||||
cluster_endpoint_public_access = "true"
|
cluster_endpoint_public_access = "true"
|
||||||
tags = var.resource_tags
|
tags = var.resource_tags
|
||||||
vpc_id = module.vpc.vpc_id
|
vpc_id = module.vpc.vpc_id
|
||||||
|
|
||||||
eks_managed_node_groups = {
|
#eks_managed_node_groups
|
||||||
|
node_groups = {
|
||||||
first = {
|
first = {
|
||||||
desired_capacity = 1
|
desired_capacity = 1
|
||||||
max_capacity = 10
|
max_capacity = 10
|
||||||
@@ -65,14 +68,14 @@ module "eks" {
|
|||||||
instance_types = [var.ec2_eks_instance_type]
|
instance_types = [var.ec2_eks_instance_type]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cluster_timeouts = {
|
cluster_create_timeout = "30m"
|
||||||
create = "30m"
|
cluster_delete_timeout = "30m"
|
||||||
update = "30m"
|
#cluster_timeouts = {
|
||||||
delete = "30m"
|
# create = "30m"
|
||||||
}
|
# update = "30m"
|
||||||
|
# delete = "30m"
|
||||||
|
#}
|
||||||
|
|
||||||
#write_kubeconfig = true
|
|
||||||
#config_output_path = "./"
|
|
||||||
#write_kubeconfig = true
|
#write_kubeconfig = true
|
||||||
#config_output_path = "/.kube/"
|
#config_output_path = "/.kube/"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user