Skip to content

Commit

Permalink
feat(helm): configure liveness and readiness probes (#604)
Browse files Browse the repository at this point in the history
* feat(helm): configure liveness and readiness probes

Signed-off-by: Eric Lin <[email protected]>

* feat(helm): bump chart version

Signed-off-by: Eric Lin <[email protected]>

* fix: typo

Signed-off-by: Eric Lin <[email protected]>

* fix: minor bump and gen docs

Signed-off-by: Eric Lin <[email protected]>

---------

Signed-off-by: Eric Lin <[email protected]>
  • Loading branch information
Ezzahhh authored Oct 11, 2024
1 parent 6e4d3df commit 131c783
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helm/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: sql-exporter
description: Database-agnostic SQL exporter for Prometheus
type: application
version: 0.6.1
version: 0.7.0
appVersion: 0.15.0
keywords:
- exporter
Expand Down
6 changes: 5 additions & 1 deletion helm/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# sql-exporter

![Version: 0.6.1](https://img.shields.io/badge/Version-0.6.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.15.0](https://img.shields.io/badge/AppVersion-0.15.0-informational?style=flat-square)
![Version: 0.7.0](https://img.shields.io/badge/Version-0.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.15.0](https://img.shields.io/badge/AppVersion-0.15.0-informational?style=flat-square)

Database-agnostic SQL exporter for Prometheus

Expand Down Expand Up @@ -42,6 +42,10 @@ helm install sql_exporter/sql-exporter
| extraContainers | object | `{}` | Arbitrary sidecar containers list |
| serviceAccount.create | bool | `true` | Specifies whether a Service Account should be created, creates "sql-exporter" service account if true, unless overriden. Otherwise, set to `default` if false, and custom service account name is not provided. Check all the available parameters. |
| serviceAccount.annotations | object | `{}` | Annotations to add to the Service Account |
| livenessProbe.initialDelaySeconds | int | `5` | |
| livenessProbe.timeoutSeconds | int | `30` | |
| readinessProbe.initialDelaySeconds | int | `5` | |
| readinessProbe.timeoutSeconds | int | `30` | |
| resources | object | `{}` | Resource limits and requests for the application controller pods |
| podLabels | object | `{}` | Pod labels |
| podAnnotations | object | `{}` | Pod annotations |
Expand Down
4 changes: 4 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,14 @@ spec:
{{- end }}
{{- end }}
livenessProbe:
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
httpGet:
path: /healthz
port: 9399
readinessProbe:
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
httpGet:
path: /healthz
port: 9399
Expand Down
8 changes: 8 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,14 @@ serviceAccount:
# iam.gke.io/gcp-service-account: [email protected]
# -- Defines if token is automatically mounted to the pod after it has been created
# automountServiceAccountToken: false
# Liveness and readiness probes for the application controller pods
livenessProbe:
initialDelaySeconds: 5
timeoutSeconds: 30

readinessProbe:
initialDelaySeconds: 5
timeoutSeconds: 30
# -- Resource limits and requests for the application controller pods
resources: {}
# limits:
Expand Down

0 comments on commit 131c783

Please sign in to comment.