cloudwatch-exporter - Support custom service labels and portName (#8488)

Signed-off-by: Kevin Pullin <kevin.pullin@gmail.com>
This commit is contained in:
Kevin Pullin
2018-10-16 03:45:53 -07:00
committed by k8s-ci-robot
parent 0eaf498b36
commit 3168c19aa5
5 changed files with 12 additions and 5 deletions
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.5.0"
description: A Helm chart for prometheus cloudwatch-exporter
name: prometheus-cloudwatch-exporter
version: 0.2.0
version: 0.2.1
home: https://github.com/prometheus/cloudwatch_exporter
sources:
- https://github.com/prometheus/cloudwatch_exporter
@@ -50,8 +50,10 @@ The following table lists the configurable parameters of the Cloudwatch Exporter
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | The service port | `80` |
| `service.portName` | The name of the service port | `http` |
| `service.targetPort` | The target port of the container | `9100` |
| `service.annotations` | Custom annotations for service | `{}` |
| `service.labels` | Additional custom labels for the service | `{}` |
| `resources` | | `{}` |
| `aws.region` | AWS Cloudwatch region | `eu-west-1` |
| `aws.role` | AWS IAM Role To Use | |
@@ -48,13 +48,13 @@ spec:
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
- name: {{ .Values.service.portName }}
containerPort: {{ .Values.service.targetPort }}
protocol: TCP
livenessProbe:
httpGet:
path: /healthy/
port: http
port: {{ .Values.service.portName }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
@@ -63,7 +63,7 @@ spec:
readinessProbe:
httpGet:
path: /ready/
port: http
port: {{ .Values.service.portName }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds}}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
@@ -9,13 +9,16 @@ metadata:
chart: {{ template "prometheus-cloudwatch-exporter.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.service.labels }}
{{ toYaml .Values.service.labels | indent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.service.targetPort }}
protocol: TCP
name: http
name: {{ .Values.service.portName }}
selector:
app: {{ template "prometheus-cloudwatch-exporter.name" . }}
release: {{ .Release.Name }}
@@ -13,7 +13,9 @@ service:
type: ClusterIP
port: 80
targetPort: 9100
portName: http
annotations: {}
labels: {}
resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious