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

helm: Allow setting pod selector on etcd (#1569)

* helm: Allow setting pod selector on etcd

Kubeadm uses different labels
This commit is contained in:
Vasily Sliouniaev
2018-07-05 20:20:08 +01:00
committed by Giancarlo Rubio
parent a9fbdd9fb3
commit 3f143e2da0
5 changed files with 8 additions and 4 deletions

View File

@@ -1,7 +1,7 @@
apiVersion: v1
description: A Helm chart for Kubernetes
name: exporter-kube-etcd
version: 0.1.13
version: 0.1.14
maintainers:
- name: Giancarlo Rubio
email: gianrubio@gmail.com

View File

@@ -18,6 +18,6 @@ spec:
targetPort: {{ .Values.etcdPort }}
{{- if .Values.endpoints }}{{- else }}
selector:
k8s-app: etcd-server
{{ .Values.serviceSelectorLabelKey }}: {{ .Values.serviceSelectorLabelValue }}
{{- end }}
type: ClusterIP

View File

@@ -4,6 +4,10 @@ etcdPort: 4001
endpoints: []
# Are we talking http or https?
scheme: http
# service selector label key to target kube etcd pods
serviceSelectorLabelKey: k8s-app
# service selector label value to target kube etcd pods
serviceSelectorLabelValue: etcd-server
# default rules are in templates/etcd3.rules.yaml
# prometheusRules: {}

View File

@@ -7,4 +7,4 @@ maintainers:
name: kube-prometheus
sources:
- https://github.com/coreos/prometheus-operator
version: 0.0.90
version: 0.0.92

View File

@@ -29,7 +29,7 @@ dependencies:
condition: deployKubeDNS
- name: exporter-kube-etcd
version: 0.1.13
version: 0.1.14
#e2e-repository: file://../exporter-kube-etcd
repository: https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/
condition: deployKubeEtcd