Skip to content

Commit 34835a5

Browse files
authored
Merge pull request #51 from Nyralei/main
Add the ability to set strategy for Deployment
2 parents d6712a4 + 755c024 commit 34835a5

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

charts/local-ai/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ spec:
1414
app.kubernetes.io/name: {{ include "local-ai.name" . }}
1515
app.kubernetes.io/instance: {{ .Release.Name }}
1616
replicas: {{ .Values.replicaCount }}
17+
{{- with .Values.deployment.strategy }}
18+
strategy:
19+
{{- toYaml . | nindent 4 }}
20+
{{- end }}
1721
template:
1822
metadata:
1923
name: {{ template "local-ai.fullname" . }}

charts/local-ai/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ deployment:
1616
# name: some-secret
1717
# key: hf-token
1818

19+
# # Set strategy for Deployment. The default values are below
20+
# strategy:
21+
# type: RollingUpdate
22+
# rollingUpdate:
23+
# maxSurge: 25%
24+
# maxUnavailable: 25%
25+
1926
modelsPath: "/models"
2027
prompt_templates:
2128
# To use cloud provided (eg AWS) image, provide it like: 1234356789.dkr.ecr.us-REGION-X.amazonaws.com/busybox

0 commit comments

Comments
 (0)