Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion terraform/layer1-aws/aws-eks.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module "eks" {
source = "terraform-aws-modules/eks/aws"
version = "14.0.0"
version = "15.1.0"

cluster_name = local.name
cluster_version = var.eks_cluster_version
Expand Down
2 changes: 1 addition & 1 deletion terraform/layer1-aws/demo.tfvars.example
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ single_nat_gateway = true
##########
# EKS
##########
eks_cluster_version = "1.18"
eks_cluster_version = "1.19"

eks_worker_groups = {
spot = {
Expand Down
2 changes: 1 addition & 1 deletion terraform/layer1-aws/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ variable "single_nat_gateway" {

# EKS
variable "eks_cluster_version" {
default = "1.18"
default = "1.19"
description = "Version of the EKS K8S cluster"
}

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

## Outputs
Expand Down
7 changes: 4 additions & 3 deletions terraform/layer2-k8s/eks-cluster-autoscaler.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ data "template_file" "cluster_autoscaler" {
role_arn = module.aws_iam_autoscaler.role_arn
region = local.region
cluster_name = local.eks_cluster_id
version = var.cluster_autoscaler_version
}
}

resource "helm_release" "cluster_autoscaler" {
name = "cluster-autoscaler-chart"
chart = "cluster-autoscaler-chart"
name = "cluster-autoscaler"
chart = "cluster-autoscaler"
repository = local.helm_repo_cluster_autoscaler
version = var.cluster_autoscaler_version
version = var.cluster_autoscaler_chart_version
namespace = kubernetes_namespace.sys.id

values = [
Expand Down
7 changes: 5 additions & 2 deletions terraform/layer2-k8s/templates/cluster-autoscaler-values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
image:
tag: ${version}

awsRegion: ${region}

rbac:
Expand All @@ -23,5 +26,5 @@ affinity:
- matchExpressions:
- key: node.kubernetes.io/lifecycle
operator: In
values:
- ondemand
values:
- ondemand
9 changes: 7 additions & 2 deletions terraform/layer2-k8s/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,13 @@ variable "alb_ingress_chart_version" {

# Cluster autoscaler
variable "cluster_autoscaler_version" {
description = "Version of autoscaler helm chart"
default = "1.1.0"
description = "Version of cluster autoscaler"
default = "v1.19.0"
}

variable "cluster_autoscaler_chart_version" {
description = "Version of cluster autoscaler helm chart"
default = "9.9.2"
}

# Prometheus Operator
Expand Down