Skip to content

Commit

Permalink
labels and annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
msfidelis authored Oct 7, 2022
1 parent f6dc7fb commit 608730c
Showing 1 changed file with 25 additions and 15 deletions.
40 changes: 25 additions & 15 deletions helm_kube_state_metrics.tf
Original file line number Diff line number Diff line change
@@ -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
]
}
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
]
}

0 comments on commit 608730c

Please sign in to comment.