You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.3 KiB
39 lines
1.3 KiB
2 years ago
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: {{ template "local-ai.fullname" . }}
|
||
|
namespace: {{ .Release.Namespace | quote }}
|
||
|
labels:
|
||
|
{{- include "local-ai.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: {{ include "local-ai.name" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
replicas: 1
|
||
|
template:
|
||
|
metadata:
|
||
|
name: {{ template "local-ai.fullname" . }}
|
||
|
labels:
|
||
|
app.kubernetes.io/name: {{ include "local-ai.name" . }}
|
||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||
|
spec:
|
||
|
containers:
|
||
|
- name: {{ template "local-ai.fullname" . }}
|
||
|
image: {{ .Values.deployment.image }}
|
||
|
env:
|
||
|
- name: THREADS
|
||
|
value: {{ .Values.deployment.env.threads | quote }}
|
||
|
- name: CONTEXT_SIZE
|
||
|
value: {{ .Values.deployment.env.contextSize | quote }}
|
||
|
- name: MODELS_PATH
|
||
|
value: {{ .Values.deployment.env.modelsPath }}
|
||
|
{{- if .Values.deployment.volume.enabled }}
|
||
|
volumeMounts:
|
||
|
- mountPath: {{ .Values.deployment.env.modelsPath }}
|
||
|
name: models
|
||
|
volumes:
|
||
|
- name: models
|
||
|
persistentVolumeClaim:
|
||
|
claimName: {{ template "local-ai.fullname" . }}
|
||
|
{{- end }}
|