Skip to content

Commit

Permalink
Merge pull request #5 from arnouthoebreckx/feature/add-deployment-str…
Browse files Browse the repository at this point in the history
…ategies

Add deployment types to Chart
  • Loading branch information
arnouthoebreckx authored Nov 13, 2022
2 parents ff63826 + 077266a commit e81619d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/tafun-quarkus/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.1.2
version: 0.2.0

# 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 charts/tafun-quarkus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ spec:
{{- if not .Values.autoscaling.enabled }}
replicas: {{ .Values.replicaCount }}
{{- end }}
strategy:
{{- .Values.strategy | toYaml | nindent 4 }}
selector:
matchLabels:
{{- include "tafun-quarkus.selectorLabels" . | nindent 6 }}
Expand Down
14 changes: 12 additions & 2 deletions charts/tafun-quarkus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1
replicaCount: 2

strategy:
# Recreate strategy will terminate all running instances and then recreate with newer
type: Recreate
# Ramped or Rolling Update strategy can be used to update gradually
# type: RollingUpdate
# rollingUpdate:
# maxSurge: 2 # This is the excess of Pods that can be added when strategy is triggered
# maxUnavailable: 0 # Maximum amount of Pods that can be pulled offline

image:
repository: tourna/tafun-alm-workshop
pullPolicy: IfNotPresent
# We want to ensure that newer versions of the "main" tag are always pulled
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "main"

Expand Down

0 comments on commit e81619d

Please sign in to comment.