prometheus-cloudwatch-exporter: Add containerPort, livenessProbe.path and readinessProbe.path variables (#22923)

Signed-off-by: Antony Perigault <antony.perigault@polyconseil.fr>
This commit is contained in:
aperigault
2020-07-27 10:56:17 -07:00
committed by GitHub
parent 085678dc66
commit 9b630cf2bf
4 changed files with 11 additions and 6 deletions
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "0.8.0"
description: A Helm chart for prometheus cloudwatch-exporter
name: prometheus-cloudwatch-exporter
version: 0.8.2
version: 0.8.3
home: https://github.com/prometheus/cloudwatch_exporter
sources:
- https://github.com/prometheus/cloudwatch_exporter
@@ -55,6 +55,7 @@ The following table lists the configurable parameters of the Cloudwatch Exporter
| `image.tag` | Image tag | `cloudwatch_exporter-0.8.0` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `command` | Container entrypoint command | `[]` |
| `containerPort` | Application listening port | `9106` |
| `service.type` | Service type | `ClusterIP` |
| `service.port` | The service port | `80` |
| `service.portName` | The name of the service port | `http` |
@@ -66,22 +66,22 @@ spec:
{{- end }}
ports:
- name: container-port
containerPort: 9106
containerPort: {{ .Values.containerPort }}
protocol: TCP
livenessProbe:
httpGet:
path: /-/healthy
path: {{ .Values.livenessProbe.path }}
port: container-port
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds}}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.livenessProbe.failureThreshold }}
readinessProbe:
httpGet:
path: /-/ready
path: {{ .Values.readinessProbe.path }}
port: container-port
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds}}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.readinessProbe.successThreshold }}
@@ -23,6 +23,8 @@ image:
command: []
containerPort: 9106
service:
type: ClusterIP
port: 9106
@@ -113,6 +115,7 @@ affinity: {}
# Configurable health checks against the /healthy and /ready endpoints
livenessProbe:
path: /-/healthy
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5
@@ -120,6 +123,7 @@ livenessProbe:
failureThreshold: 3
readinessProbe:
path: /-/ready
initialDelaySeconds: 30
periodSeconds: 5
timeoutSeconds: 5