From 3df5d4cc5bb99bca498edd973bc004b398087561 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Sun, 15 Nov 2020 23:47:40 +0700 Subject: [PATCH] Install Prometheus stack --- platform/main.tf | 10 ++++++++++ platform/versions.tf | 5 +++++ 2 files changed, 15 insertions(+) diff --git a/platform/main.tf b/platform/main.tf index dcbd7ba4..a116e693 100644 --- a/platform/main.tf +++ b/platform/main.tf @@ -67,3 +67,13 @@ resource "helm_release" "metallb" { EOT } } + +resource "helm_release" "prometheus" { + name = "kube-prometheus-stack" + repository = "https://prometheus-community.github.io/helm-charts" + chart = "kube-prometheus-stack" + version = "11.1.2" + + namespace = "monitoring-system" + create_namespace = true +} diff --git a/platform/versions.tf b/platform/versions.tf index ad99e005..01c07ddb 100644 --- a/platform/versions.tf +++ b/platform/versions.tf @@ -16,6 +16,11 @@ terraform { version = "1.1.3" } + kubernetes = { + source = "hashicorp/kubernetes" + version = "1.13.3" + } + helm = { source = "hashicorp/helm" version = "1.3.2"