diff --git a/ai/ai-starter-kit/helm-chart/ai-starter-kit/templates/ramalama-deployment.yaml b/ai/ai-starter-kit/helm-chart/ai-starter-kit/templates/ramalama-deployment.yaml new file mode 100644 index 00000000..c866db8b --- /dev/null +++ b/ai/ai-starter-kit/helm-chart/ai-starter-kit/templates/ramalama-deployment.yaml @@ -0,0 +1,27 @@ +--- +{{- if .Values.ramalama.enabled }} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "ai-starter-kit.fullname" . }}-ramalama + labels: + {{- include "ai-starter-kit.labels" . | nindent 4 }} + app.kubernetes.io/component: ramalama +spec: + selector: + matchLabels: + {{- include "ai-starter-kit.selectorLabels" . | nindent 6 }} + app.kubernetes.io/component: ramalama + template: + metadata: + labels: + {{- include "ai-starter-kit.selectorLabels" . | nindent 8 }} + app.kubernetes.io/component: ramalama + spec: + containers: + - name: ramalama + image: "{{ .Values.ramalama.image.repository }}:{{ .Values.ramalama.image.tag }}" + imagePullPolicy: {{ .Values.ramalama.image.pullPolicy }} + command: + {{- toYaml .Values.ramalama.command | nindent 10 }} +{{- end }} \ No newline at end of file diff --git a/ai/ai-starter-kit/helm-chart/ai-starter-kit/values.yaml b/ai/ai-starter-kit/helm-chart/ai-starter-kit/values.yaml index 9c6e697e..18210754 100644 --- a/ai/ai-starter-kit/helm-chart/ai-starter-kit/values.yaml +++ b/ai/ai-starter-kit/helm-chart/ai-starter-kit/values.yaml @@ -158,3 +158,13 @@ localPersistence: enabled: false # This path must match the destination path inside the minikube node. hostPath: "/tmp/models-cache" + +ramalama: + enabled: true + command: ["sh", "-c" , "trap 'exit 0' TERM; while true; do sleep 60 & wait; done"] + image: + repository: "quay.io/ramalama/ramalama" + tag: "latest" + pullPolicy: IfNotPresent + +