Skip to content

Commit 463c441

Browse files
authored
eks 1.19 update (#39)
* #30 Updated EKS module version * #30 Updated cluster autoscaler chart and version * #30 Updated EKS cluster version * #30 Updated EKS cluster version in example tfvars
1 parent 149080b commit 463c441

File tree

7 files changed

+22
-16
lines changed

7 files changed

+22
-16
lines changed

terraform/layer1-aws/aws-eks.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module "eks" {
22
source = "terraform-aws-modules/eks/aws"
3-
version = "14.0.0"
3+
version = "15.1.0"
44

55
cluster_name = local.name
66
cluster_version = var.eks_cluster_version

terraform/layer1-aws/demo.tfvars.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ single_nat_gateway = true
1818
##########
1919
# EKS
2020
##########
21-
eks_cluster_version = "1.18"
21+
eks_cluster_version = "1.19"
2222

2323
eks_worker_groups = {
2424
spot = {

terraform/layer1-aws/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ variable "single_nat_gateway" {
9191

9292
# EKS
9393
variable "eks_cluster_version" {
94-
default = "1.18"
94+
default = "1.19"
9595
description = "Version of the EKS K8S cluster"
9696
}
9797

terraform/layer2-k8s/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,18 @@
2424
| additional\_allowed\_ips | IP addresses allowed to connect to private resources | `list(any)` | `[]` | no |
2525
| alb\_ingress\_chart\_version | Version of alb-ingress helm chart | `string` | `"1.0.4"` | no |
2626
| alb\_ingress\_image\_tag | Tag of docker image for alb-ingress controller | `string` | `"v1.1.5"` | no |
27-
| alertmanager\_slack\_channel | Slack channel for alertmanager alerts | `string` | `"madops-demo-alerts"` | no |
2827
| allowed\_account\_ids | List of allowed AWS account IDs | `list` | `[]` | no |
2928
| aws\_node\_termination\_handler\_version | Version of aws-node-termination-handler helm chart | `string` | `"0.13.3"` | no |
3029
| calico\_daemonset | Version of calico helm chart | `string` | `"0.3.4"` | no |
3130
| cert\_manager\_version | Version of cert-manager helm chart | `string` | `"1.1.0"` | no |
32-
| cluster\_autoscaler\_version | Version of autoscaler helm chart | `string` | `"1.1.0"` | no |
31+
| cluster\_autoscaler\_chart\_version | Version of cluster autoscaler helm chart | `string` | `"9.9.2"` | no |
32+
| cluster\_autoscaler\_version | Version of cluster autoscaler | `string` | `"v1.19.0"` | no |
3333
| elk\_index\_retention\_days | Days before remove index from system elasticsearch | `number` | `14` | no |
3434
| elk\_snapshot\_retention\_days | Days to capture index in snapshot | `number` | `90` | no |
3535
| elk\_version | Version of ELK helm chart | `string` | `"7.8.0"` | no |
3636
| external\_dns\_version | Version of external-dns helm chart | `string` | `"4.9.4"` | no |
3737
| external\_secrets\_version | Version of external-secrets helm chart | `string` | `"6.3.0"` | no |
3838
| gitlab\_runner\_version | Version of gitlab runner helm chart | `string` | `"0.26.0"` | no |
39-
| grafana\_gitlab\_group | Gitlab group for grafana oauth | `string` | `"madops"` | no |
40-
| kibana\_gitlab\_group | Gitlab group for kibana oauth2 | `string` | `"madops"` | no |
41-
| loki\_datasource\_for\_prometheus\_stack | Enable Loki Datasource in prometheus stack chart | `bool` | `false` | no |
4239
| loki\_stack | Version of Loki Stack helm chart | `string` | `"2.3.1"` | no |
4340
| nginx\_ingress\_controller\_version | Version of nginx-ingress helm chart | `string` | `"3.23.0"` | no |
4441
| nginx\_ingress\_ssl\_terminator | Select SSL termination type | `string` | `"lb"` | no |
@@ -48,7 +45,7 @@
4845
| redis\_version | Version of redis helm chart | `string` | `"12.7.3"` | no |
4946
| region | Default infrastructure region | `string` | `"us-east-1"` | no |
5047
| reloader\_version | Version of reloader helm chart | `string` | `"0.0.81"` | no |
51-
| remote\_state\_bucket | Name of the bucket with the state | `string` | `"madops-terraform-state-us-east-1"` | no |
48+
| remote\_state\_bucket | Name of the bucket for terraform state | `string` | n/a | yes |
5249
| remote\_state\_key | Key of the remote state for terraform\_remote\_state | `string` | `"layer1-aws"` | no |
5350

5451
## Outputs

terraform/layer2-k8s/eks-cluster-autoscaler.tf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@ data "template_file" "cluster_autoscaler" {
1414
role_arn = module.aws_iam_autoscaler.role_arn
1515
region = local.region
1616
cluster_name = local.eks_cluster_id
17+
version = var.cluster_autoscaler_version
1718
}
1819
}
1920

2021
resource "helm_release" "cluster_autoscaler" {
21-
name = "cluster-autoscaler-chart"
22-
chart = "cluster-autoscaler-chart"
22+
name = "cluster-autoscaler"
23+
chart = "cluster-autoscaler"
2324
repository = local.helm_repo_cluster_autoscaler
24-
version = var.cluster_autoscaler_version
25+
version = var.cluster_autoscaler_chart_version
2526
namespace = kubernetes_namespace.sys.id
2627

2728
values = [

terraform/layer2-k8s/templates/cluster-autoscaler-values.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
image:
2+
tag: ${version}
3+
14
awsRegion: ${region}
25

36
rbac:
@@ -23,5 +26,5 @@ affinity:
2326
- matchExpressions:
2427
- key: node.kubernetes.io/lifecycle
2528
operator: In
26-
values:
27-
- ondemand
29+
values:
30+
- ondemand

terraform/layer2-k8s/variables.tf

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,13 @@ variable "alb_ingress_chart_version" {
7272

7373
# Cluster autoscaler
7474
variable "cluster_autoscaler_version" {
75-
description = "Version of autoscaler helm chart"
76-
default = "1.1.0"
75+
description = "Version of cluster autoscaler"
76+
default = "v1.19.0"
77+
}
78+
79+
variable "cluster_autoscaler_chart_version" {
80+
description = "Version of cluster autoscaler helm chart"
81+
default = "9.9.2"
7782
}
7883

7984
# Prometheus Operator

0 commit comments

Comments
 (0)