diff --git a/README.md b/README.md index 91687ddaf..b2fa1f269 100644 --- a/README.md +++ b/README.md @@ -245,6 +245,7 @@ The following table lists the configurable parameters of the Harbor chart and th | `jobservice.image.tag` | Tag for jobservice image | `dev` | | `jobservice.replicas` | The replica count | `1` | | `jobservice.revisionHistoryLimit` | The revision history limit | `10` | +| `jobservice.updateStrategy.type` | The update strategy for jobservice deployment (if needs to be different from others): `RollingUpdate` or `Recreate`. Set it as `Recreate` when `RWM` for volumes isn't supported | same as general `updateStrategy.type`| | `jobservice.maxJobWorkers` | The max job workers | `10` | | `jobservice.jobLoggers` | The loggers for jobs: `file`, `database` or `stdout` | `[file]` | | `jobservice.loggerSweeperDuration` | The jobLogger sweeper duration in days (ignored if `jobLoggers` is set to `stdout`) | `14` | diff --git a/templates/jobservice/jobservice-dpl.yaml b/templates/jobservice/jobservice-dpl.yaml index 45b7f8b41..dc1872200 100644 --- a/templates/jobservice/jobservice-dpl.yaml +++ b/templates/jobservice/jobservice-dpl.yaml @@ -9,8 +9,9 @@ spec: replicas: {{ .Values.jobservice.replicas }} revisionHistoryLimit: {{ .Values.jobservice.revisionHistoryLimit }} strategy: - type: {{ .Values.updateStrategy.type }} - {{- if eq .Values.updateStrategy.type "Recreate" }} + {{- $strategyType := (.Values.jobservice.strategyType | default .Values.updateStrategy.type) }} + type: {{ $strategyType }} + {{- if eq $strategyType "Recreate" }} rollingUpdate: null {{- end }} selector: diff --git a/values.yaml b/values.yaml index 7e7490650..6065aba9c 100644 --- a/values.yaml +++ b/values.yaml @@ -633,6 +633,9 @@ jobservice: # mount the service account token automountServiceAccountToken: false replicas: 1 + # uncomment following lines to specify different updateStrategy for jobService + # updateStrategy: + # type: ReCreate revisionHistoryLimit: 10 # resources: # requests: