diff --git a/README.md b/README.md index 39b880c07..7d592bb25 100644 --- a/README.md +++ b/README.md @@ -248,6 +248,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 3e426694b..f5d0c8c56 100644 --- a/templates/jobservice/jobservice-dpl.yaml +++ b/templates/jobservice/jobservice-dpl.yaml @@ -11,8 +11,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 98206b0f4..965290bfb 100644 --- a/values.yaml +++ b/values.yaml @@ -649,6 +649,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: