Skip to content

Commit

Permalink
Parametrize rollingUpdate parameters for Moon deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-ak committed May 6, 2023
1 parent 61fb464 commit ac83713
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 ac83713

Please sign in to comment.