Skip to content

Commit fe15de5

Browse files
venkatamutyalagithub-actions[bot]fernandoataoldotcom
authored
* feat: update EKS ami to https://github.com/awslabs/amazon-eks-ami/releases/tag/v20230816 * feat: update csi driver v1.21.0 -> v1.22.0 * fix: change defaults to 4 nodes instead of 3. It's easier to have an even number of nodes per AZ than to deal with a situation where we have odd. * terraform-docs: automated action --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: fernandoataoldotcom <antonio.rodriguez@glueops.dev>
1 parent 8a7a6c0 commit fe15de5

File tree

5 files changed

+20
-20
lines changed

5 files changed

+20
-20
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ module "captain" {
1818
iam_role_to_assume = "arn:aws:iam::1234567890:role/glueops-captain-role"
1919
source = "git::https://github.com/GlueOps/terraform-module-cloud-aws-kubernetes-cluster.git"
2020
eks_version = "1.27"
21-
csi_driver_version = "v1.21.0-eksbuild.1"
21+
csi_driver_version = "v1.22.0-eksbuild.2"
2222
vpc_cidr_block = "10.65.0.0/26"
2323
region = "us-west-2"
2424
availability_zones = ["us-west-2a", "us-west-2b"]
2525
node_pools = [
2626
# {
27-
# "ami_image_id" : "ami-032121bb9a4ea9359",
27+
# "ami_image_id" : "ami-0bce9ab1f1be3282a",
2828
# "instance_type" : "t3a.large",
2929
# "name" : "glueops-platform-node-pool-1",
30-
# "node_count" : 3,
30+
# "node_count" : 4,
3131
# "spot" : false,
3232
# "disk_size_gb" : 20,
3333
# "max_pods" : 110,
@@ -44,10 +44,10 @@ module "captain" {
4444
# ]
4545
# },
4646
# {
47-
# "ami_image_id" : "ami-032121bb9a4ea9359",
47+
# "ami_image_id" : "ami-0bce9ab1f1be3282a",
4848
# "instance_type" : "t3a.large",
4949
# "name" : "clusterwide-node-pool-1",
50-
# "node_count" : 3,
50+
# "node_count" : 4,
5151
# "spot" : false,
5252
# "disk_size_gb" : 20,
5353
# "max_pods" : 110,
@@ -168,10 +168,10 @@ No requirements.
168168
|------|-------------|------|---------|:--------:|
169169
| <a name="input_availability_zones"></a> [availability\_zones](#input\_availability\_zones) | The availability zones to deploy into | `list(string)` | <pre>[<br> "us-west-2a",<br> "us-west-2b",<br> "us-west-2c"<br>]</pre> | no |
170170
| <a name="input_coredns_version"></a> [coredns\_version](#input\_coredns\_version) | You should grab the appropriate version number from: https://docs.aws.amazon.com/eks/latest/userguide/managing-coredns.html | `string` | `"v1.10.1-eksbuild.2"` | no |
171-
| <a name="input_csi_driver_version"></a> [csi\_driver\_version](#input\_csi\_driver\_version) | You should grab the appropriate version number from: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/CHANGELOG.md | `string` | `"v1.21.0-eksbuild.1"` | no |
171+
| <a name="input_csi_driver_version"></a> [csi\_driver\_version](#input\_csi\_driver\_version) | You should grab the appropriate version number from: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/CHANGELOG.md | `string` | `"v1.22.0-eksbuild.2"` | no |
172172
| <a name="input_eks_version"></a> [eks\_version](#input\_eks\_version) | The version of EKS to deploy | `string` | `"1.27"` | no |
173173
| <a name="input_iam_role_to_assume"></a> [iam\_role\_to\_assume](#input\_iam\_role\_to\_assume) | The full ARN of the IAM role to assume | `string` | n/a | yes |
174-
| <a name="input_node_pools"></a> [node\_pools](#input\_node\_pools) | node pool configurations:<br> - name (string): Name of the node pool. MUST BE UNIQUE! Recommended to use YYYYMMDD in the name<br> - node\_count (number): number of nodes to create in the node pool.<br> - instance\_type (string): Instance type to use for the nodes. ref: https://instances.vantage.sh/<br> - ami\_image\_id (string): AMI image ID to use for EKS worker nodes. This varies per region!! ref: https://github.com/awslabs/amazon-eks-ami/releases to find the AMI ID go to the console: https://us-west-2.console.aws.amazon.com/ec2/home?region=us-west-2#Images:visibility=public-images;search=amazon-eks-node-1.27-v20230703<br> - spot (bool): Enable spot instances for the nodes. DO NOT ENABLE IN PROD!<br> - disk\_size\_gb (number): Disk size in GB for the nodes.<br> - max\_pods (number): max pods that can be scheduled per node.<br> - ssh\_key\_pair\_names (list(string)): List of SSH key pair names to associate with the nodes. ref: https://us-west-2.console.aws.amazon.com/ec2/home?region=us-west-2#KeyPairs:<br> - kubernetes\_labels (map(string)): Map of labels to apply to the nodes. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/<br> - kubernetes\_taints (list(object)): List of taints to apply to the nodes. ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ | <pre>list(object({<br> name = string<br> node_count = number<br> instance_type = string<br> ami_image_id = string<br> spot = bool<br> disk_size_gb = number<br> max_pods = number<br> ssh_key_pair_names = list(string)<br> kubernetes_labels = map(string)<br> kubernetes_taints = list(object({<br> key = string<br> value = string<br> effect = string<br> }))<br><br> }))</pre> | <pre>[<br> {<br> "ami_image_id": "ami-032121bb9a4ea9359",<br> "disk_size_gb": 20,<br> "instance_type": "t3a.large",<br> "kubernetes_labels": {},<br> "kubernetes_taints": [],<br> "max_pods": 110,<br> "name": "default-pool",<br> "node_count": 1,<br> "spot": false,<br> "ssh_key_pair_names": []<br> }<br>]</pre> | no |
174+
| <a name="input_node_pools"></a> [node\_pools](#input\_node\_pools) | node pool configurations:<br> - name (string): Name of the node pool. MUST BE UNIQUE! Recommended to use YYYYMMDD in the name<br> - node\_count (number): number of nodes to create in the node pool.<br> - instance\_type (string): Instance type to use for the nodes. ref: https://instances.vantage.sh/<br> - ami\_image\_id (string): AMI image ID to use for EKS worker nodes. This varies per region!! ref: https://github.com/awslabs/amazon-eks-ami/releases to find the AMI ID go to the console: https://us-west-2.console.aws.amazon.com/ec2/home?region=us-west-2#Images:visibility=public-images;search=amazon-eks-node-1.27-v20230703<br> - spot (bool): Enable spot instances for the nodes. DO NOT ENABLE IN PROD!<br> - disk\_size\_gb (number): Disk size in GB for the nodes.<br> - max\_pods (number): max pods that can be scheduled per node.<br> - ssh\_key\_pair\_names (list(string)): List of SSH key pair names to associate with the nodes. ref: https://us-west-2.console.aws.amazon.com/ec2/home?region=us-west-2#KeyPairs:<br> - kubernetes\_labels (map(string)): Map of labels to apply to the nodes. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/<br> - kubernetes\_taints (list(object)): List of taints to apply to the nodes. ref: https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/ | <pre>list(object({<br> name = string<br> node_count = number<br> instance_type = string<br> ami_image_id = string<br> spot = bool<br> disk_size_gb = number<br> max_pods = number<br> ssh_key_pair_names = list(string)<br> kubernetes_labels = map(string)<br> kubernetes_taints = list(object({<br> key = string<br> value = string<br> effect = string<br> }))<br><br> }))</pre> | <pre>[<br> {<br> "ami_image_id": "ami-0bce9ab1f1be3282a",<br> "disk_size_gb": 20,<br> "instance_type": "t3a.large",<br> "kubernetes_labels": {},<br> "kubernetes_taints": [],<br> "max_pods": 110,<br> "name": "default-pool",<br> "node_count": 1,<br> "spot": false,<br> "ssh_key_pair_names": []<br> }<br>]</pre> | no |
175175
| <a name="input_peering_configs"></a> [peering\_configs](#input\_peering\_configs) | A list of maps containing VPC peering configuration details | <pre>list(object({<br> vpc_peering_connection_id = string<br> destination_cidr_block = string<br> }))</pre> | `[]` | no |
176176
| <a name="input_region"></a> [region](#input\_region) | The AWS region to deploy into | `string` | n/a | yes |
177177
| <a name="input_vpc_cidr_block"></a> [vpc\_cidr\_block](#input\_vpc\_cidr\_block) | The CIDR block for the VPC | `string` | `"10.65.0.0/26"` | no |

docs/.header.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ module "captain" {
1717
iam_role_to_assume = "arn:aws:iam::1234567890:role/glueops-captain-role"
1818
source = "git::https://github.com/GlueOps/terraform-module-cloud-aws-kubernetes-cluster.git"
1919
eks_version = "1.27"
20-
csi_driver_version = "v1.21.0-eksbuild.1"
20+
csi_driver_version = "v1.22.0-eksbuild.2"
2121
vpc_cidr_block = "10.65.0.0/26"
2222
region = "us-west-2"
2323
availability_zones = ["us-west-2a", "us-west-2b"]
2424
node_pools = [
2525
# {
26-
# "ami_image_id" : "ami-032121bb9a4ea9359",
26+
# "ami_image_id" : "ami-0bce9ab1f1be3282a",
2727
# "instance_type" : "t3a.large",
2828
# "name" : "glueops-platform-node-pool-1",
29-
# "node_count" : 3,
29+
# "node_count" : 4,
3030
# "spot" : false,
3131
# "disk_size_gb" : 20,
3232
# "max_pods" : 110,
@@ -43,10 +43,10 @@ module "captain" {
4343
# ]
4444
# },
4545
# {
46-
# "ami_image_id" : "ami-032121bb9a4ea9359",
46+
# "ami_image_id" : "ami-0bce9ab1f1be3282a",
4747
# "instance_type" : "t3a.large",
4848
# "name" : "clusterwide-node-pool-1",
49-
# "node_count" : 3,
49+
# "node_count" : 4,
5050
# "spot" : false,
5151
# "disk_size_gb" : 20,
5252
# "max_pods" : 110,

tests/destroy-aws.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
# reference: https://github.com/GlueOps/scripts-teardown-aws-amazon-web-services
44
echo "Preform an AWS Cleanup with AWS Nuke"
5-
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.23.0/aws-nuke-v2.23.0-linux-amd64.tar.gz && tar -xvf aws-nuke-v2.23.0-linux-amd64.tar.gz && rm aws-nuke-v2.23.0-linux-amd64.tar.gz && mv aws-nuke-v2.23.0-linux-amd64 aws-nuke
5+
wget https://github.com/rebuy-de/aws-nuke/releases/download/v2.24.2/aws-nuke-v2.24.2-linux-amd64.tar.gz && tar -xvf aws-nuke-v2.24.2-linux-amd64.tar.gz && rm aws-nuke-v2.24.2-linux-amd64.tar.gz && mv aws-nuke-v2.24.2-linux-amd64 aws-nuke
66
./aws-nuke -c aws-nuke.yaml --no-dry-run --force

tests/main.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ module "captain" {
22
iam_role_to_assume = "arn:aws:iam::761182885829:role/glueops-captain"
33
source = "../"
44
eks_version = "1.27"
5-
csi_driver_version = "v1.20.0-eksbuild.1"
5+
csi_driver_version = "v1.22.0-eksbuild.2"
66
vpc_cidr_block = "10.65.0.0/26"
77
region = "us-west-2"
88
availability_zones = ["us-west-2a", "us-west-2b"]
99
node_pools = [
1010
# {
11-
# "ami_image_id" : "ami-032121bb9a4ea9359",
11+
# "ami_image_id" : "ami-0bce9ab1f1be3282a",
1212
# "instance_type" : "t3a.small",
1313
# "name" : "glueops-platform-node-pool-1",
14-
# "node_count" : 3,
14+
# "node_count" : 2,
1515
# "spot" : false,
1616
# "disk_size_gb" : 20,
1717
# "max_pods" : 110,
@@ -28,10 +28,10 @@ module "captain" {
2828
# ]
2929
# },
3030
# {
31-
# "ami_image_id" : "ami-032121bb9a4ea9359",
31+
# "ami_image_id" : "ami-0bce9ab1f1be3282a",
3232
# "instance_type" : "t3a.small",
3333
# "name" : "clusterwide-node-pool-1",
34-
# "node_count" : 3,
34+
# "node_count" : 2,
3535
# "spot" : false,
3636
# "disk_size_gb" : 20,
3737
# "max_pods" : 110,

variables.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variable "region" {
55

66
variable "csi_driver_version" {
77
type = string
8-
default = "v1.21.0-eksbuild.1"
8+
default = "v1.22.0-eksbuild.2"
99
description = "You should grab the appropriate version number from: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/blob/master/CHANGELOG.md"
1010
}
1111

@@ -84,7 +84,7 @@ variable "node_pools" {
8484
name = "default-pool"
8585
node_count = 1
8686
instance_type = "t3a.large"
87-
ami_image_id = "ami-032121bb9a4ea9359"
87+
ami_image_id = "ami-0bce9ab1f1be3282a"
8888
spot = false
8989
disk_size_gb = 20
9090
max_pods = 110

0 commit comments

Comments
 (0)