-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from SCT-Engineering/upgrade-version-1.30
Upgrade version 1.30
- Loading branch information
Showing
12 changed files
with
251 additions
and
14 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| module "eks" { | ||
| # source = "git@github.e.it.census.gov:SCT-Engineering/tfmod-eks.git//" | ||
| source = "../.." | ||
|
|
||
| vpc_name = var.vpc_name | ||
| cluster_name = var.cluster_name | ||
| cluster_version = var.cluster_version | ||
| domain = var.domain | ||
| eks_instance_disk_size = var.eks_instance_disk_size | ||
| eks_instance_types = var.eks_instance_types | ||
| eks_ng_desired_size = var.eks_ng_desired_size | ||
| eks_ng_max_size = var.eks_ng_max_size | ||
| eks_ng_min_size = var.eks_ng_min_size | ||
| cluster_endpoint_public_access = var.cluster_endpoint_public_access | ||
| access_entries = var.access_entries | ||
| enable_cluster_creator_admin_permissions = var.enable_cluster_creator_admin_permissions | ||
| tags = var.tags | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| terraform { | ||
| required_version = ">= 1.5.0" | ||
| } | ||
|
|
||
| provider "aws" { | ||
| profile = var.profile | ||
| region = var.region | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| variable "region" { | ||
| description = "AWS region" | ||
| type = string | ||
| } | ||
|
|
||
| variable "profile" { | ||
| description = "AWS config profile" | ||
| type = string | ||
| } | ||
|
|
||
| variable "cluster_name" { | ||
| description = "EKS cluster name name component used through out the EKS cluster describing its purpose (ex: dice-dev)" | ||
| type = string | ||
| } | ||
|
|
||
| variable "cluster_version" { | ||
| description = "The Kubernetes version number to use for this EKS cluster. See https://docs.aws.amazon.com/eks/latest/userguide/kubernetes-versions.html" | ||
| type = string | ||
| default = "1.30" | ||
| } | ||
|
|
||
| variable "vpc_name" { | ||
| description = "AWS vpc in which the cluster will reside" | ||
| type = string | ||
| } | ||
|
|
||
| variable "cluster_endpoint_public_access" { | ||
| type = bool | ||
| } | ||
|
|
||
| variable "enable_cluster_creator_admin_permissions" { | ||
| description = "Indicates whether or not to add the cluster creator (the identity used by Terraform) as an administrator via access entry" | ||
| type = bool | ||
| default = true | ||
| } | ||
|
|
||
| variable "domain" { | ||
| description = "The DNS domain name of the cluster." | ||
| type = string | ||
| } | ||
|
|
||
| variable "eks_instance_disk_size" { | ||
| description = "The size of the disk of the worker nodes in gigabytes. 40 is the approximate minimum. Needs to hold the all of the normal operating system files plus every image that will be used in the cluster." | ||
| type = number | ||
| default = 40 | ||
| } | ||
|
|
||
| variable "eks_instance_types" { | ||
| description = "EKS worker node instance types" | ||
| type = list(string) | ||
| default = [ | ||
| "t3.xlarge" | ||
| ] | ||
| } | ||
|
|
||
| variable "access_entries" { | ||
| description = "Map of access entries to add to the cluster" | ||
| type = any | ||
| default = {} | ||
| } | ||
|
|
||
| variable "eks_ng_min_size" { | ||
| description = "Node Group minimum size" | ||
| type = number | ||
| default = 4 | ||
| } | ||
| variable "eks_ng_desired_size" { | ||
| description = "Node Group desired size" | ||
| type = number | ||
| default = 4 | ||
| } | ||
| variable "eks_ng_max_size" { | ||
| description = "Node Group maximum size" | ||
| type = number | ||
| default = 15 | ||
| } | ||
| variable "tags" { | ||
| description = "AWS Tags to apply to appropriate resources" | ||
| type = map(string) | ||
| default = {} | ||
| } |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| locals { | ||
| ingress_rules { | ||
| ingress_nodes_ephemeral = { | ||
| "description" = "Node to node ingress on ephemeral ports" | ||
| "protocol" = -1 | ||
| "from_port" = 0 | ||
| "to_port" = 0 | ||
| "type" = "ingress" | ||
| "self" = true | ||
| } | ||
| } | ||
| # ingress_nodes_ephemeral = { | ||
| # "description": "Node to node ingress on ephemeral ports custom", | ||
| # "protocol": -1, | ||
| # "from_port": 0, | ||
| # "to_port": 0, | ||
| # "type": "ingress", | ||
| # "self": true | ||
| # } | ||
| } | ||
|
|
||
|
|
||
| # { | ||
| # "cidr_blocks": [], | ||
| # "description": "Envoy inbound", | ||
| # "from_port": 15006, | ||
| # "ipv6_cidr_blocks": [], | ||
| # "prefix_list_ids": [], | ||
| # "protocol": "tcp", | ||
| # "security_groups": [], | ||
| # "self": true, | ||
| # "to_port": 15006 | ||
| # }, | ||
|
|
||
| # ingress_rules = { | ||
| # for ikey, ivalue in local.istio_ports : | ||
| # "${ikey}_ingress" => { | ||
| # description = ivalue.description | ||
| # protocol = "tcp" | ||
| # from_port = ivalue.from_port | ||
| # to_port = ivalue.to_port | ||
| # type = "ingress" | ||
| # self = true | ||
| # } | ||
| # } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,57 @@ | ||
| locals { | ||
| node_security_group_additional_rules = { | ||
| "ingress_nodes_ephemeral" = { | ||
| "description" = "Node to node ingress on ephemeral ports" | ||
| "from_port" = 80 | ||
| "protocol" = "tcp" | ||
| "self" = true | ||
| "to_port" = 65535 | ||
| "type" = "ingress" | ||
| } | ||
| # metrics-server | ||
| ingress_cluster_4443_webhook = { | ||
| description = "Cluster API to node 4443/tcp webhook" | ||
| protocol = "tcp" | ||
| from_port = 4443 | ||
| to_port = 4443 | ||
| type = "ingress" | ||
| source_cluster_security_group = true | ||
| } | ||
| # prometheus-adapter | ||
| ingress_cluster_6443_webhook = { | ||
| description = "Cluster API to node 6443/tcp webhook" | ||
| protocol = "tcp" | ||
| from_port = 6443 | ||
| to_port = 6443 | ||
| type = "ingress" | ||
| source_cluster_security_group = true | ||
| } | ||
| # Karpenter | ||
| ingress_cluster_8443_webhook = { | ||
| description = "Cluster API to node 8443/tcp webhook" | ||
| protocol = "tcp" | ||
| from_port = 8443 | ||
| to_port = 8443 | ||
| type = "ingress" | ||
| source_cluster_security_group = true | ||
| } | ||
| # ALB controller, NGINX | ||
| ingress_cluster_9443_webhook = { | ||
| description = "Cluster API to node 9443/tcp webhook" | ||
| protocol = "tcp" | ||
| from_port = 9443 | ||
| to_port = 9443 | ||
| type = "ingress" | ||
| source_cluster_security_group = true | ||
| } | ||
| egress_all = { | ||
| description = "Allow all egress" | ||
| protocol = "-1" | ||
| from_port = 0 | ||
| to_port = 0 | ||
| type = "egress" | ||
| cidr_blocks = ["0.0.0.0/0"] | ||
| # ipv6_cidr_blocks = var.cluster_ip_family == "ipv6" ? ["::/0"] : null | ||
| } | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters