diff --git a/terraform/modules/k8s-addons/eks-kube-prometheus-stack.tf b/terraform/modules/k8s-addons/eks-kube-prometheus-stack.tf index 9739593..0df1c3f 100644 --- a/terraform/modules/k8s-addons/eks-kube-prometheus-stack.tf +++ b/terraform/modules/k8s-addons/eks-kube-prometheus-stack.tf @@ -59,7 +59,7 @@ prometheus: storageSpec: volumeClaimTemplate: spec: - storageClassName: advanced + storageClassName: gp3 accessModes: ["ReadWriteOnce"] resources: requests: diff --git a/terraform/modules/k8s-addons/eks-loki-stack.tf b/terraform/modules/k8s-addons/eks-loki-stack.tf index 3c22eb6..4193cb0 100644 --- a/terraform/modules/k8s-addons/eks-loki-stack.tf +++ b/terraform/modules/k8s-addons/eks-loki-stack.tf @@ -30,7 +30,7 @@ loki: accessModes: - ReadWriteOnce size: 10Gi - storageClassName: advanced + storageClassName: gp3 serviceMonitor: enabled: true scrapeTimeout: 10s diff --git a/terraform/modules/k8s-addons/eks-metric-server.tf b/terraform/modules/k8s-addons/eks-metric-server.tf new file mode 100644 index 0000000..862dedc --- /dev/null +++ b/terraform/modules/k8s-addons/eks-metric-server.tf @@ -0,0 +1,106 @@ +locals { + metrics_server = { + name = local.helm_releases[index(local.helm_releases.*.id, "metrics-server")].id + enabled = local.helm_releases[index(local.helm_releases.*.id, "metrics-server")].enabled + chart = local.helm_releases[index(local.helm_releases.*.id, "metrics-server")].chart + repository = local.helm_releases[index(local.helm_releases.*.id, "metrics-server")].repository + chart_version = local.helm_releases[index(local.helm_releases.*.id, "metrics-server")].chart_version + namespace = local.helm_releases[index(local.helm_releases.*.id, "metrics-server")].namespace + } + + metrics_server_values = <