Compare commits

..

4 Commits

Author SHA1 Message Date
Moritz Graf 138f33bc43 Allowing moritz on telegram 2026-02-08 10:49:21 +01:00
Moritz Graf f3b2f86a2f Adding gemini with api key 2026-02-08 10:38:18 +01:00
Moritz Graf 00dbc0983e Correcting ollama config 2026-02-08 10:34:13 +01:00
Moritz Graf 5d0c6ec184 Correcting ollama 2026-02-08 10:02:09 +01:00
2 changed files with 3 additions and 19 deletions

View File

@ -15,22 +15,6 @@ spec:
labels:
app: ollama
spec:
initContainers:
- name: pull-model
image: curlimages/curl
command: ["/bin/sh", "-c"]
args:
- |
echo "Waiting for Ollama service..."
# Simple wait loop (naive check, better to use readiness probe/postStart but init runs before app)
# Actually, init container runs BEFORE the main container, so it can't interact with the main container's localhost.
# We need to perform the model pull *after* Ollama starts.
# Changing strategy: Use a postStart hook or sidecar.
# Or simpler: Just let it start, and rely on user/execution time pull, or use an entrypoint script wrapper in main container.
# Best approach for k8s simplicity: Use a command wrapper.
echo "Init container cannot pull because main container is not up. Skipping pre-pull in init."
echo "Model pull will require manual trigger or standard entrypoint behavior."
# To automate: We can run a sidecar that waits for port 11434 and then pulls.
containers:
- name: ollama
image: ollama/ollama:latest
@ -54,13 +38,13 @@ spec:
mountPath: /root/.ollama
livenessProbe:
httpGet:
path: /api/health
path: /
port: http
initialDelaySeconds: 60
initialDelaySeconds: 300
periodSeconds: 10
readinessProbe:
httpGet:
path: /api/health
path: /
port: http
initialDelaySeconds: 30
periodSeconds: 5

Binary file not shown.