Skip to content

Instantly share code, notes, and snippets.

@guivin
Created March 23, 2022 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guivin/b17c5b03fe5e186f934c4457885c8db2 to your computer and use it in GitHub Desktop.
Save guivin/b17c5b03fe5e186f934c4457885c8db2 to your computer and use it in GitHub Desktop.
prometheus.tf
resource "helm_release" "prometheus" {
chart = "prometheus"
name = "prometheus"
namespace = var.namespace
repository = "https://prometheus-community.github.io/helm-charts"
version = "15.5.3"
set {
name = "podSecurityPolicy.enabled"
value = true
}
set {
name = "server.persistentVolume.enabled"
value = false
}
# You can provide a map of value using yamlencode. Don't forget to escape the last element after point in the name
set {
name = "server\\.resources"
value = yamlencode({
limits = {
cpu = "200m"
memory = "50Mi"
}
requests = {
cpu = "100m"
memory = "30Mi"
}
})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment