Skip to content

Commit

Permalink
feat: upgrade k8s from 1.29 -> 1.30 (#195)
Browse files Browse the repository at this point in the history
* feat: upgrade k8s from 1.29 -> 1.30

* fix: default version of 1.27 -> 1.30

* docs: automated update of terraform docs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
venkatamutyala and github-actions[bot] authored Dec 5, 2024
1 parent 550622d commit 040916c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 31 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ For more details see: https://github.com/GlueOps/terraform-module-cloud-aws-kube
module "captain" {
iam_role_to_assume = "arn:aws:iam::1234567890:role/glueops-captain-role"
source = "git::https://github.com/GlueOps/terraform-module-cloud-aws-kubernetes-cluster.git"
eks_version = "1.29"
eks_version = "1.30"
csi_driver_version = "v1.37.0-eksbuild.1"
coredns_version = "v1.11.3-eksbuild.2"
kube_proxy_version = "v1.29.10-eksbuild.3"
kube_proxy_version = "v1.30.6-eksbuild.3"
vpc_cidr_block = "10.65.0.0/26"
region = "us-west-2"
availability_zones = ["us-west-2a", "us-west-2b"]
node_pools = [
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.large",
# "name" : "glueops-platform-node-pool-1",
Expand All @@ -48,8 +48,8 @@ module "captain" {
# ]
# },
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.small",
# "name" : "glueops-platform-node-pool-argocd-app-controller-1",
Expand All @@ -70,8 +70,8 @@ module "captain" {
# ]
# },
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.medium",
# "name" : "clusterwide-node-pool-1",
Expand Down Expand Up @@ -197,10 +197,10 @@ No requirements.
| <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 |
| <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.11.3-eksbuild.2"` | no |
| <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.37.0-eksbuild.1"` | no |
| <a name="input_eks_version"></a> [eks\_version](#input\_eks\_version) | The version of EKS to deploy | `string` | `"1.27"` | no |
| <a name="input_eks_version"></a> [eks\_version](#input\_eks\_version) | The version of EKS to deploy | `string` | `"1.30"` | no |
| <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 |
| <a name="input_kube_proxy_version"></a> [kube\_proxy\_version](#input\_kube\_proxy\_version) | You should grab the appropriate version number from: https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html | `string` | `"v1.29.10-eksbuild.3"` | no |
| <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/> - kubernetes\_version (string): Generally this is the same version as the EKS cluster. But if doing a node pool upgrade this may be a different version.<br/> - ami\_release\_version (string): AMI Release version to use for EKS worker nodes. ref: https://github.com/awslabs/amazon-eks-ami/releases<br/> - ami\_type (string): e.g. AMD64 or ARM<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/> kubernetes_version = string<br/> ami_release_version = string<br/> ami_type = 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_release_version": "1.29.10-20241121",<br/> "ami_type": "AL2_x86_64",<br/> "disk_size_gb": 20,<br/> "instance_type": "t3a.large",<br/> "kubernetes_labels": {},<br/> "kubernetes_taints": [],<br/> "kubernetes_version": "1.29",<br/> "max_pods": 110,<br/> "name": "default-pool",<br/> "node_count": 1,<br/> "spot": false,<br/> "ssh_key_pair_names": []<br/> }<br/>]</pre> | no |
| <a name="input_kube_proxy_version"></a> [kube\_proxy\_version](#input\_kube\_proxy\_version) | You should grab the appropriate version number from: https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html | `string` | `"v1.30.6-eksbuild.3"` | no |
| <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/> - kubernetes\_version (string): Generally this is the same version as the EKS cluster. But if doing a node pool upgrade this may be a different version.<br/> - ami\_release\_version (string): AMI Release version to use for EKS worker nodes. ref: https://github.com/awslabs/amazon-eks-ami/releases<br/> - ami\_type (string): e.g. AMD64 or ARM<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/> kubernetes_version = string<br/> ami_release_version = string<br/> ami_type = 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_release_version": "1.30.6-20241121",<br/> "ami_type": "AL2_x86_64",<br/> "disk_size_gb": 20,<br/> "instance_type": "t3a.large",<br/> "kubernetes_labels": {},<br/> "kubernetes_taints": [],<br/> "kubernetes_version": "1.30",<br/> "max_pods": 110,<br/> "name": "default-pool",<br/> "node_count": 1,<br/> "spot": false,<br/> "ssh_key_pair_names": []<br/> }<br/>]</pre> | no |
| <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 |
| <a name="input_region"></a> [region](#input\_region) | The AWS region to deploy into | `string` | n/a | yes |
| <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 |
Expand Down
16 changes: 8 additions & 8 deletions docs/.header.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ For more details see: https://github.com/GlueOps/terraform-module-cloud-aws-kube
module "captain" {
iam_role_to_assume = "arn:aws:iam::1234567890:role/glueops-captain-role"
source = "git::https://github.com/GlueOps/terraform-module-cloud-aws-kubernetes-cluster.git"
eks_version = "1.29"
eks_version = "1.30"
csi_driver_version = "v1.37.0-eksbuild.1"
coredns_version = "v1.11.3-eksbuild.2"
kube_proxy_version = "v1.29.10-eksbuild.3"
kube_proxy_version = "v1.30.6-eksbuild.3"
vpc_cidr_block = "10.65.0.0/26"
region = "us-west-2"
availability_zones = ["us-west-2a", "us-west-2b"]
node_pools = [
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.large",
# "name" : "glueops-platform-node-pool-1",
Expand All @@ -48,8 +48,8 @@ module "captain" {
# ]
# },
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.small",
# "name" : "glueops-platform-node-pool-argocd-app-controller-1",
Expand All @@ -70,8 +70,8 @@ module "captain" {
# ]
# },
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.medium",
# "name" : "clusterwide-node-pool-1",
Expand Down
16 changes: 8 additions & 8 deletions tests/main.tf
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
module "captain" {
iam_role_to_assume = "arn:aws:iam::761182885829:role/glueops-captain-role"
source = "../"
eks_version = "1.29"
eks_version = "1.30"
csi_driver_version = "v1.37.0-eksbuild.1"
coredns_version = "v1.11.3-eksbuild.2"
kube_proxy_version = "v1.29.10-eksbuild.3"
kube_proxy_version = "v1.30.6-eksbuild.3"
vpc_cidr_block = "10.65.0.0/26"
region = "us-west-2"
availability_zones = ["us-west-2a", "us-west-2b"]
node_pools = [
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.large",
# "name" : "glueops-platform-node-pool-1",
Expand All @@ -32,8 +32,8 @@ module "captain" {
# ]
# },
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.small",
# "name" : "glueops-platform-node-pool-argocd-app-controller-1",
Expand All @@ -54,8 +54,8 @@ module "captain" {
# ]
# },
# {
# "kubernetes_version" : "1.29",
# "ami_release_version" : "1.29.10-20241121",
# "kubernetes_version" : "1.30",
# "ami_release_version" : "1.30.6-20241121",
# "ami_type" : "AL2_x86_64",
# "instance_type" : "t3a.medium",
# "name" : "clusterwide-node-pool-1",
Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variable "coredns_version" {

variable "kube_proxy_version" {
type = string
default = "v1.29.10-eksbuild.3"
default = "v1.30.6-eksbuild.3"
description = "You should grab the appropriate version number from: https://docs.aws.amazon.com/eks/latest/userguide/managing-kube-proxy.html"
}

Expand Down Expand Up @@ -65,7 +65,7 @@ variable "availability_zones" {
variable "eks_version" {
type = string
description = "The version of EKS to deploy"
default = "1.27"
default = "1.30"
}

variable "node_pools" {
Expand All @@ -92,8 +92,8 @@ variable "node_pools" {
name = "default-pool"
node_count = 1
instance_type = "t3a.large"
ami_release_version = "1.29.10-20241121"
kubernetes_version = "1.29"
ami_release_version = "1.30.6-20241121"
kubernetes_version = "1.30"
ami_type = "AL2_x86_64"
spot = false
disk_size_gb = 20
Expand Down

0 comments on commit 040916c

Please sign in to comment.