From 25ce0292c9cceb09191b383fa39e73d78e4dbf62 Mon Sep 17 00:00:00 2001 From: Ben Pehling Date: Thu, 3 Oct 2019 16:14:40 -0500 Subject: [PATCH] Make probes configurable Signed-off-by: Ben Pehling --- README.md | 1 + templates/core/core-dpl.yaml | 2 +- values.yaml | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 896af10c1..77f1e2657 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ The following table lists the configurable parameters of the Harbor chart and th | `core.image.repository` | Repository for Harbor core image | `goharbor/harbor-core` | | `core.image.tag` | Tag for Harbor core image | `dev` | | `core.replicas` | The replica count | `1` | +| `core.livenessProbe.initialDelaySeconds` | The initial delay in seconds for the liveness probe | `300` | | `core.resources` | The [resources] to allocate for container | undefined | | `core.nodeSelector` | Node labels for pod assignment | `{}` | | `core.tolerations` | Tolerations for pod assignment | `[]` | diff --git a/templates/core/core-dpl.yaml b/templates/core/core-dpl.yaml index 429a517c9..6d541a475 100644 --- a/templates/core/core-dpl.yaml +++ b/templates/core/core-dpl.yaml @@ -38,7 +38,7 @@ spec: httpGet: path: /api/ping port: 8080 - initialDelaySeconds: 20 + initialDelaySeconds: {{ .Values.core.livenessProbe.initialDelaySeconds }} periodSeconds: 10 readinessProbe: httpGet: diff --git a/values.yaml b/values.yaml index a3d91a1e1..b1c823865 100644 --- a/values.yaml +++ b/values.yaml @@ -300,6 +300,9 @@ core: repository: goharbor/harbor-core tag: v1.9.0 replicas: 1 + ## Liveness probe values + livenessProbe: + initialDelaySeconds: 300 # resources: # requests: # memory: 256Mi