Skip to content

Commit 3865327

Browse files
authored
Merge pull request #391 from ywk253100/191014_probe_1.2
[Cherry-pick-1.2]Make probes configurable
2 parents 3a7efc1 + 25ce029 commit 3865327

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ The following table lists the configurable parameters of the Harbor chart and th
181181
| `core.image.repository` | Repository for Harbor core image | `goharbor/harbor-core` |
182182
| `core.image.tag` | Tag for Harbor core image | `dev` |
183183
| `core.replicas` | The replica count | `1` |
184+
| `core.livenessProbe.initialDelaySeconds` | The initial delay in seconds for the liveness probe | `300` |
184185
| `core.resources` | The [resources] to allocate for container | undefined |
185186
| `core.nodeSelector` | Node labels for pod assignment | `{}` |
186187
| `core.tolerations` | Tolerations for pod assignment | `[]` |

templates/core/core-dpl.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ spec:
3838
httpGet:
3939
path: /api/ping
4040
port: 8080
41-
initialDelaySeconds: 20
41+
initialDelaySeconds: {{ .Values.core.livenessProbe.initialDelaySeconds }}
4242
periodSeconds: 10
4343
readinessProbe:
4444
httpGet:

values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,9 @@ core:
300300
repository: goharbor/harbor-core
301301
tag: v1.9.1
302302
replicas: 1
303+
## Liveness probe values
304+
livenessProbe:
305+
initialDelaySeconds: 300
303306
# resources:
304307
# requests:
305308
# memory: 256Mi

0 commit comments

Comments
 (0)