From 7570368ae2a1bced9737331edb6b097fc3f72db2 Mon Sep 17 00:00:00 2001 From: Jack Lindamood Date: Thu, 18 Jan 2024 16:45:38 -0800 Subject: [PATCH] feat: add health override --- charts/gitdb/Chart.yaml | 2 +- charts/gitdb/templates/deployment.yaml | 8 +++++++- charts/gitdb/values.yaml | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/gitdb/Chart.yaml b/charts/gitdb/Chart.yaml index 75ac630..a7214ee 100644 --- a/charts/gitdb/Chart.yaml +++ b/charts/gitdb/Chart.yaml @@ -15,7 +15,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. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.31 +version: 0.1.32 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/gitdb/templates/deployment.yaml b/charts/gitdb/templates/deployment.yaml index d2fb4e2..b6482f1 100644 --- a/charts/gitdb/templates/deployment.yaml +++ b/charts/gitdb/templates/deployment.yaml @@ -49,7 +49,7 @@ spec: - name: DATA_DIRECTORY value: {{ .Values.gitdb.dataDirectory | quote }} {{- end }} -# JWT + # JWT {{- if .Values.jwt.privateKey }} - name: GITDB_JWT_PRIVATE_KEY value: {{ .Values.jwt.privateKey | quote }} @@ -77,14 +77,20 @@ spec: - name: http containerPort: 8080 protocol: TCP + {{- if $.Values.health }} + {{- toYaml $.Values.health | nindent 10 }} + {{- else }} livenessProbe: + initialDelaySeconds: 60 httpGet: path: /health port: http readinessProbe: + initialDelaySeconds: 60 httpGet: path: /health port: http + {{- end }} {{- if .Values.resources }} resources: {{- toYaml .Values.resources | nindent 12 }} diff --git a/charts/gitdb/values.yaml b/charts/gitdb/values.yaml index 1c6d8b6..6b41076 100644 --- a/charts/gitdb/values.yaml +++ b/charts/gitdb/values.yaml @@ -24,6 +24,7 @@ serviceAccount: name: "" podAnnotations: {} +health: {} git: secretName: