From 34c2c4c69476336c119c16e582832225f8bab23d Mon Sep 17 00:00:00 2001 From: Nikita Aleksandrov Date: Mon, 1 Sep 2025 11:10:56 +0200 Subject: [PATCH] add ramalama deployment --- .../templates/ramalama-deployment.yaml | 27 +++++++++++++++++++ .../helm-chart/ai-starter-kit/values.yaml | 10 +++++++ 2 files changed, 37 insertions(+) create mode 100644 ai/ai-starter-kit/helm-chart/ai-starter-kit/templates/ramalama-deployment.yaml 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 b4df470c..b093d9f1 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 @@ -171,3 +171,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 + +