mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
add ability to configure deployment strategy (#8073)
* add abillity to configure deployment strategy Signed-off-by: Vardit Natanson <v.natanson@travelaudience.com> * bump chart version Signed-off-by: Vardit Natanson <v.natanson@travelaudience.com> * update README Signed-off-by: Vardit Natanson <v.natanson@travelaudience.com> * remove Whitespace Signed-off-by: Vardit Natanson <v.natanson@travelaudience.com> * using pre-define values for namespace Signed-off-by: Vardit Natanson <v.natanson@travelaudience.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: sonatype-nexus
|
||||
version: 1.9.0
|
||||
version: 1.10.0
|
||||
appVersion: 3.13.0-01
|
||||
description: Sonatype Nexus is an open source repository manager
|
||||
keywords:
|
||||
|
||||
@@ -63,6 +63,7 @@ The following table lists the configurable parameters of the Nexus chart and the
|
||||
| Parameter | Description | Default |
|
||||
| ------------------------------------------ | ---------------------------------- | ----------------------------------------|
|
||||
| `replicaCount` | Number of Nexus service replicas | `1` |
|
||||
| `deploymentStrategy` | Deployment Strategy | `rollingUpdate` |
|
||||
| `nexus.imageName` | Nexus image | `quay.io/travelaudience/docker-nexus` |
|
||||
| `nexus.imageTag` | Version of Nexus | `3.9.0` |
|
||||
| `nexus.imagePullPolicy` | Nexus image pull policy | `IfNotPresent` |
|
||||
|
||||
@@ -12,6 +12,7 @@ spec:
|
||||
- ReadWriteOnce
|
||||
claimRef:
|
||||
name: {{ template "nexus.fullname" . }}-backup
|
||||
namespace: {{ .Release.Namespace }}
|
||||
gcePersistentDisk:
|
||||
pdName: {{ .Values.nexusBackup.persistence.pdName }}
|
||||
fsType: {{ .Values.nexusBackup.persistence.fsType }}
|
||||
|
||||
@@ -6,6 +6,10 @@ metadata:
|
||||
{{ include "nexus.labels" . | indent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
{{- if .Values.deploymentStrategy }}
|
||||
strategy:
|
||||
{{ toYaml .Values.deploymentStrategy | indent 4 }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "nexus.name" . }}
|
||||
|
||||
@@ -11,6 +11,7 @@ spec:
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
claimRef:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: {{ template "nexus.fullname" . }}-data
|
||||
gcePersistentDisk:
|
||||
pdName: {{ .Values.persistence.pdName }}
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
replicaCount: 1
|
||||
# By default deploymentStrategy is set to rollingUpdate with maxSurge of 25% and maxUnavailable of 25% . you can change type to `Recreate` or can uncomment `rollingUpdate` specification and adjust them to your usage.
|
||||
deploymentStrategy: {}
|
||||
# rollingUpdate:
|
||||
# maxSurge: 25%
|
||||
# maxUnavailable: 25%
|
||||
# type: RollingUpdate
|
||||
|
||||
nexus:
|
||||
imageName: quay.io/travelaudience/docker-nexus
|
||||
|
||||
Reference in New Issue
Block a user