From 6c6fc1e883165f75bc34aeee87f196bc2cc62f7c Mon Sep 17 00:00:00 2001 From: ozlevka-ericom Date: Wed, 23 Jan 2019 16:01:58 +0200 Subject: [PATCH 1/2] Chart start working --- helm/prometheus-chart/Chart.yaml | 2 +- .../prometheus-chart/templates/grafana-deployment.yaml | 4 ++++ .../templates/prometheus-serviceaccount.yaml | 2 +- helm/prometheus-chart/values.yaml | 10 +++++----- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/helm/prometheus-chart/Chart.yaml b/helm/prometheus-chart/Chart.yaml index 25b1849..54b17b4 100755 --- a/helm/prometheus-chart/Chart.yaml +++ b/helm/prometheus-chart/Chart.yaml @@ -12,4 +12,4 @@ sources: - https://github.com/prometheus/alertmanager - https://github.com/prometheus/prometheus tillerVersion: ">=2.8.0" -version: 0.1.0-[[ .SHA ]] +version: 0.1.0 diff --git a/helm/prometheus-chart/templates/grafana-deployment.yaml b/helm/prometheus-chart/templates/grafana-deployment.yaml index f2ece77..48d1fa4 100644 --- a/helm/prometheus-chart/templates/grafana-deployment.yaml +++ b/helm/prometheus-chart/templates/grafana-deployment.yaml @@ -75,9 +75,11 @@ spec: - name: config mountPath: "/etc/grafana/grafana.ini" subPath: grafana.ini + {{- if .Values.grafana.auth }} - name: ldap mountPath: "/etc/grafana/ldap.toml" subPath: ldap.toml + {{- end }} # Data sources to provision on startup - name: datasources mountPath: /etc/grafana/provisioning/datasources @@ -127,12 +129,14 @@ spec: - name: config configMap: name: {{ template "prometheus.grafana.fullname" . }} + {{- if .Values.grafana.auth }} - name: ldap secret: secretName: {{ template "prometheus.grafana.fullname" . }} items: - key: ldap-toml path: ldap.toml + {{- end }} - name: datasources configMap: name: grafana-datasources diff --git a/helm/prometheus-chart/templates/prometheus-serviceaccount.yaml b/helm/prometheus-chart/templates/prometheus-serviceaccount.yaml index 2d3160f..d558315 100644 --- a/helm/prometheus-chart/templates/prometheus-serviceaccount.yaml +++ b/helm/prometheus-chart/templates/prometheus-serviceaccount.yaml @@ -1,4 +1,4 @@ -piVersion: v1 +apiVersion: v1 kind: ServiceAccount metadata: labels: diff --git a/helm/prometheus-chart/values.yaml b/helm/prometheus-chart/values.yaml index 0b1d591..f620e97 100644 --- a/helm/prometheus-chart/values.yaml +++ b/helm/prometheus-chart/values.yaml @@ -2,7 +2,7 @@ alertmanager: ## If false, alertmanager will not be installed ## - enabled: true + enabled: false ## alertmanager container name ## @@ -104,7 +104,7 @@ alertmanager: ## If true, alertmanager will create/use a Persistent Volume Claim ## If false, use emptyDir ## - enabled: true + enabled: false ## alertmanager data Persistent Volume access modes ## Must match those of existing PV or dynamic provisioner @@ -360,7 +360,7 @@ server: ## If true, Prometheus server will create/use a Persistent Volume Claim ## If false, use emptyDir ## - enabled: true + enabled: false ## Prometheus server data Persistent Volume access modes ## Must match those of existing PV or dynamic provisioner @@ -449,7 +449,7 @@ initChownData: ## If false, data ownership will not be reset at startup ## This allows the prometheus-server to be run with an arbitrary user ## - enabled: true + enabled: false ## initChownData container name ## @@ -868,7 +868,7 @@ grafana: affinity: {} adminUser: admin - # adminPassword: strongpassword + adminPassword: Ericom123$ ## Use an alternate scheduler, e.g. "stork". ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/ From 3198eae250940ce3d7c6113eaef57af64a667c2c Mon Sep 17 00:00:00 2001 From: Fernando Ripoll Date: Thu, 31 Jan 2019 13:45:37 +0200 Subject: [PATCH 2/2] Update helm/prometheus-chart/values.yaml Yea... It's was mistake... Co-Authored-By: ozlevka-ericom --- helm/prometheus-chart/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/prometheus-chart/values.yaml b/helm/prometheus-chart/values.yaml index f620e97..b988202 100644 --- a/helm/prometheus-chart/values.yaml +++ b/helm/prometheus-chart/values.yaml @@ -868,7 +868,7 @@ grafana: affinity: {} adminUser: admin - adminPassword: Ericom123$ + adminPassword: strongpassword ## Use an alternate scheduler, e.g. "stork". ## ref: https://kubernetes.io/docs/tasks/administer-cluster/configure-multiple-schedulers/