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:
Varditn
2018-10-02 10:18:18 -07:00
committed by k8s-ci-robot
parent 936903578c
commit 91c7c01b26
6 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -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:
+1
View File
@@ -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" . }}
+1
View File
@@ -11,6 +11,7 @@ spec:
accessModes:
- ReadWriteOnce
claimRef:
namespace: {{ .Release.Namespace }}
name: {{ template "nexus.fullname" . }}-data
gcePersistentDisk:
pdName: {{ .Values.persistence.pdName }}
+6
View File
@@ -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