mirror of
https://gitea.com/gitea/helm-chart.git
synced 2024-07-04 23:34:12 +02:00
Merge pull request #25 from abh/strategy
Support specifying deployment strategy
This commit is contained in:
commit
deb8d4186c
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@ -13,6 +12,10 @@ spec:
|
|||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: {{ template "fullname" . }}
|
app: {{ template "fullname" . }}
|
||||||
|
{{- with .Values.deploymentStrategy }}
|
||||||
|
strategy:
|
||||||
|
{{ toYaml . | trim | indent 4 }}
|
||||||
|
{{- end }}
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
12
values.yaml
12
values.yaml
@ -114,6 +114,18 @@ resources:
|
|||||||
memory: 64Mi
|
memory: 64Mi
|
||||||
cpu: 50m
|
cpu: 50m
|
||||||
|
|
||||||
|
## Update strategy - for deployments with RWO PVs attached and with a
|
||||||
|
## single replicas = 1, an update can get stuck, as the previous pod
|
||||||
|
## remains attached to the PVC. Changing the strategy to "Recreate"
|
||||||
|
## will terminate the single previous pod, so that the new, incoming
|
||||||
|
## pod can attach to the PV
|
||||||
|
# deploymentStrategy:
|
||||||
|
# rollingUpdate:
|
||||||
|
# type: "Recreate"
|
||||||
|
# type: "RollingUpdate"
|
||||||
|
# maxSurge: 1
|
||||||
|
# maxUnavailable: 1
|
||||||
|
|
||||||
## Enable persistence using Persistent Volume Claims
|
## Enable persistence using Persistent Volume Claims
|
||||||
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
|
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
|
||||||
## ref:
|
## ref:
|
||||||
|
Loading…
Reference in New Issue
Block a user