From b9d65fddb0035b002b47c4871b1de0ff69ff28e6 Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Fri, 10 Jul 2020 19:46:51 +0200 Subject: [PATCH] Add start up probes --- charts/docker-hub-exporter/Chart.yaml | 2 +- charts/docker-hub-exporter/templates/deployment.yaml | 8 ++++++-- charts/redirect/Chart.yaml | 2 +- charts/redirect/templates/deployment.yaml | 6 ++++++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/charts/docker-hub-exporter/Chart.yaml b/charts/docker-hub-exporter/Chart.yaml index 6132170..14e2a21 100644 --- a/charts/docker-hub-exporter/Chart.yaml +++ b/charts/docker-hub-exporter/Chart.yaml @@ -4,7 +4,7 @@ description: Docker Hub exporter home: https://github.com/jessestuart/docker-hub-exporter icon: https://helm.wyrihaximus.net/images/charts/docker-hub-exporter.png type: application -version: 0.2.1 +version: 0.2.2 appVersion: d05df48 maintainers: - name: WyriHaximus diff --git a/charts/docker-hub-exporter/templates/deployment.yaml b/charts/docker-hub-exporter/templates/deployment.yaml index 55e8925..1ae0725 100644 --- a/charts/docker-hub-exporter/templates/deployment.yaml +++ b/charts/docker-hub-exporter/templates/deployment.yaml @@ -30,12 +30,16 @@ spec: containerPort: 9170 protocol: TCP livenessProbe: - initialDelaySeconds: 5 httpGet: path: / port: metrics readinessProbe: - initialDelaySeconds: 5 + httpGet: + path: / + port: metrics + startupProbe: + failureThreshold: 33 + periodSeconds: 1 httpGet: path: / port: metrics diff --git a/charts/redirect/Chart.yaml b/charts/redirect/Chart.yaml index 175911e..7254268 100644 --- a/charts/redirect/Chart.yaml +++ b/charts/redirect/Chart.yaml @@ -16,7 +16,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. -version: 0.1.1 +version: 0.1.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. diff --git a/charts/redirect/templates/deployment.yaml b/charts/redirect/templates/deployment.yaml index 0ff2638..cda07c4 100644 --- a/charts/redirect/templates/deployment.yaml +++ b/charts/redirect/templates/deployment.yaml @@ -51,6 +51,12 @@ spec: httpGet: path: /ping port: http-metrics + startupProbe: + failureThreshold: 33 + periodSeconds: 1 + httpGet: + path: /ping + port: http-metrics volumeMounts: - name: {{ include ".helm.fullname" . }}-volume mountPath: /etc/redirect/