diff --git a/helm_kube_state_metrics.tf b/helm_kube_state_metrics.tf index 229ef35..8f53488 100644 --- a/helm_kube_state_metrics.tf +++ b/helm_kube_state_metrics.tf @@ -1,18 +1,28 @@ resource "helm_release" "kube_state_metrics" { - name = "kube-state-metrics" - repository = "https://prometheus-community.github.io/helm-charts" - chart = "kube-state-metrics" - namespace = "observability" - create_namespace = true + name = "kube-state-metrics" + repository = "https://prometheus-community.github.io/helm-charts" + chart = "kube-state-metrics" + namespace = "kube-system" + create_namespace = true - set { - name = "apiService.create" - value = "true" - } + set { + name = "apiService.create" + value = "true" + } - depends_on = [ - aws_eks_cluster.eks_cluster, - aws_eks_node_group.cluster, - kubernetes_config_map.aws-auth - ] -} \ No newline at end of file + set { + name = "metricLabelsAllowlist[0]" + value = "nodes=[*]" + } + + set { + name = "metricAnnotationsAllowList[0]" + value = "nodes=[*]" + } + + depends_on = [ + aws_eks_cluster.eks_cluster, + aws_eks_node_group.cluster, + kubernetes_config_map.aws-auth + ] +}