Skip to content

Commit

Permalink
feat(minecraft-server): Allow strategy options
Browse files Browse the repository at this point in the history
  • Loading branch information
0SkillAllLuck committed Jun 10, 2022
1 parent 4f55a1b commit 4cc427f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/minecraft-server/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: minecraft-server
version: 0.1.1201
version: 0.1.1202
appVersion: v0.1.12
description: Docker Minecraft Server image with support for Plugins etc.
home: https://github.com/qumine/minecraft-server
Expand Down
3 changes: 1 addition & 2 deletions charts/minecraft-server/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ metadata:
{{- end }}
spec:
replicas: {{ .Values.replicas }}
strategy:
type: {{ .Values.strategy }}
strategy: {{ toYaml .Values.strategy | nindent 4 }}
selector:
matchLabels: {{ include "qumine.matchLabels" . | nindent 6 }}
template:
Expand Down
10 changes: 8 additions & 2 deletions charts/minecraft-server/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,14 @@ extraEnv: []
##
replicas: 1

# upgrade strategy (e.g. Recreate or RollingUpdate)
strategy: Recreate
# upgrade strategy
strategy:
type: Recreate

# type: RollingUpdate
# rollingUpdate:
# maxSurge: 2
# maxUnavailable: 1

## Annotations for the deployment
##
Expand Down

0 comments on commit 4cc427f

Please sign in to comment.