Created
March 23, 2022 08:00
-
-
Save guivin/b17c5b03fe5e186f934c4457885c8db2 to your computer and use it in GitHub Desktop.
prometheus.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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