Skip to content

Commit

Permalink
feat: add option to specify Kubernetes update strategy type (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
liviudm authored May 14, 2024
1 parent a56e694 commit 4153a2a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion helm/fuel-block-committer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.0
version: 0.5.1

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
2 changes: 2 additions & 0 deletions helm/fuel-block-committer/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
labels:
{{- include "fuel-block-committer.labels" . | nindent 4 }}
spec:
strategy:
type: {{ .Values.updateStrategyType }}
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
Expand Down
2 changes: 2 additions & 0 deletions helm/fuel-block-committer/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ autoscaling:
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

updateStrategyType: Recreate

nodeSelector: {}

tolerations: []
Expand Down

0 comments on commit 4153a2a

Please sign in to comment.