mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
charts: allow to set deployment update strategy (#1597)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
name: athens-proxy
|
||||
version: 0.4.9
|
||||
version: 0.4.10
|
||||
appVersion: 0.8.1
|
||||
description: The proxy server for Go modules
|
||||
icon: https://raw.githubusercontent.com/gomods/athens/master/docs/static/banner.png
|
||||
|
||||
@@ -9,6 +9,13 @@ metadata:
|
||||
heritage: "{{ .Release.Service }}"
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
{{- if .Values.strategy }}
|
||||
strategy:
|
||||
{{ toYaml .Values.strategy | indent 4 }}
|
||||
{{- if eq .Values.strategy.type "Recreate" }}
|
||||
rollingUpdate: null
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ template "fullname" . }}
|
||||
|
||||
@@ -17,6 +17,10 @@ livenessProbe:
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 1
|
||||
|
||||
## Server Deployment Strategy type
|
||||
# strategy:
|
||||
# type: Recreate
|
||||
|
||||
service:
|
||||
## Additional annotations to apply to the service
|
||||
annotations: {}
|
||||
@@ -46,6 +50,7 @@ storage:
|
||||
storageRoot: "/var/lib/athens"
|
||||
persistence:
|
||||
## Note if you use disk.persistence.enabled, replicaCount should be set to 1 unless your access mode is ReadWriteMany
|
||||
## and strategy type must be Recreate
|
||||
enabled: false
|
||||
accessMode: ReadWriteOnce
|
||||
size: 4Gi
|
||||
|
||||
Reference in New Issue
Block a user