1
0
mirror of https://github.com/coreos/prometheus-operator.git synced 2026-02-05 06:45:27 +01:00

charts: Pass TLS config to etcd service monitor (#1164)

* charts: Pass TLS config to etcd service monitor

In order to use this chart in our environment we need to specify a TLS configuration
this will allow us to pass one.

Fixes #1162
This commit is contained in:
Richard Maynard
2018-04-03 14:09:58 -05:00
committed by Giancarlo Rubio
parent 0cd45a6ece
commit 46e1404851
4 changed files with 14 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Kubernetes
name: exporter-kube-etcd
version: 0.1.8
version: 0.1.9
maintainers:
- name: Michael Goodness
email: mgoodness@gmail.com

View File

@@ -24,7 +24,13 @@ spec:
{{- if eq .Values.scheme "https" }}
scheme: https
tlsConfig:
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
caFile: {{ .Values.caFile }}
{{- if .Values.certFile }}
certFile: {{ .Values.certFile }}
{{- end }}
{{- if .Values.keyFile }}
keyFile: {{ .Values.keyFile }}
{{- end}}
insecureSkipVerify: true
{{- end }}

View File

@@ -6,3 +6,8 @@ endpoints: []
scheme: http
# default rules are in templates/etcd3.rules.yaml
# prometheusRules: {}
# TLS Cofiguration for the service monitor, default to none, but append cert and keyfile if passed
caFile: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
certFile: ""
keyFile: ""

View File

@@ -21,7 +21,7 @@ dependencies:
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
- name: exporter-kube-etcd
version: 0.1.8
version: 0.1.9
#e2e-repository: file://../exporter-kube-etcd
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/