Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #337 from guillomep/startup_probe_nexus
Browse files Browse the repository at this point in the history
Add startup probe for sonatype-nexus
  • Loading branch information
rjkernick authored Mar 8, 2022
2 parents ddbe28f + 52682fe commit e8e0155
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/sonatype-nexus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: sonatype-nexus
version: 5.3.5
version: 5.4.0
appVersion: 3.37.3
description: Sonatype Nexus is an open source repository manager
keywords:
Expand Down
5 changes: 5 additions & 0 deletions charts/sonatype-nexus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ The following table lists the configurable parameters of the Nexus chart and the
| `nexus.readinessProbe.failureThreshold` | Number of attempts before failure | 6 |
| `nexus.readinessProbe.timeoutSeconds` | Time in seconds after readiness probe times out | `nil` |
| `nexus.readinessProbe.path` | Path for ReadinessProbe | / |
| `nexus.startupProbe.initialDelaySeconds` | StartupProbe initial delay | 30 |
| `nexus.startupProbe.periodSeconds` | Seconds between polls | 30 |
| `nexus.startupProbe.failureThreshold` | Number of attempts before failure | 6 |
| `nexus.startupProbe.timeoutSeconds` | Time in seconds after startup probe times out | `nil` |
| `nexus.startupProbe.path` | Path for StartupProbe | / |
| `nexus.hostAliases` | Aliases for IPs in /etc/hosts | [] |
| `nexus.context` | Non-root path to run Nexus at | `nil` |
| `nexus.chownNexusData` | Set false to not execute chown to the mounted nexus-data directory at startup | `true` |
Expand Down
12 changes: 12 additions & 0 deletions charts/sonatype-nexus/templates/deployment-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ spec:
{{- if .Values.nexus.readinessProbe.timeoutSeconds }}
timeoutSeconds: {{ .Values.nexus.readinessProbe.timeoutSeconds }}
{{- end }}
{{- if .Values.nexus.startupProbe }}
startupProbe:
httpGet:
path: {{ .Values.nexus.startupProbe.path }}
port: {{ .Values.nexus.nexusPort }}
initialDelaySeconds: {{ .Values.nexus.startupProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.nexus.startupProbe.periodSeconds }}
failureThreshold: {{ .Values.nexus.startupProbe.failureThreshold }}
{{- if .Values.nexus.startupProbe.timeoutSeconds }}
timeoutSeconds: {{ .Values.nexus.startupProbe.timeoutSeconds }}
{{- end }}
{{- end }}
volumeMounts:
- mountPath: /nexus-data
name: {{ template "nexus.fullname" . }}-data
Expand Down
6 changes: 6 additions & 0 deletions charts/sonatype-nexus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ nexus:
failureThreshold: 6
# timeoutSeconds: 10
path: /
# startupProbe:
# initialDelaySeconds: 10
# periodSeconds: 10
# failureThreshold: 300
# # timeoutSeconds: 10
# path: /
# hostAliases allows the modification of the hosts file inside a container
hostAliases: []
# - ip: "192.168.1.10"
Expand Down

0 comments on commit e8e0155

Please sign in to comment.