Skip to content

Commit

Permalink
Merge pull request #201 from sergey-aerokube/parametrize_rolling_upda…
Browse files Browse the repository at this point in the history
…te_parameters

Parametrize rollingUpdate parameters for Moon deployment
  • Loading branch information
vania-pooh authored May 19, 2023
2 parents 99fff40 + ac83713 commit 86250b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions moon2/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ spec:
selector:
matchLabels:
app: {{ .Release.Name }}
strategy:
rollingUpdate:
maxSurge: {{ .Values.deployment.rollingUpdate.maxSurge | default 1 }}
maxUnavailable: {{ .Values.deployment.rollingUpdate.maxUnavailable | default 1 }}
type: RollingUpdate
template:
metadata:
annotations:
Expand Down
8 changes: 8 additions & 0 deletions moon2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,14 @@ deployment:
securityContext: {}
# runAsUser: 1000

##
## Optional fields that specifies the maximum number of pods that can be created over the desired number of pods
## and that can be unavailable during the update. You can use both int and percent values.
##
rollingUpdate: {}
# maxSurge: 25%
# maxUnavailable: 25%

##
## Node Selector for Moon pods
##
Expand Down

0 comments on commit 86250b2

Please sign in to comment.