From c175cfd69b9cba4387e1f99c119bbcee691fbd12 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Sat, 18 Apr 2026 11:13:42 +0000 Subject: [PATCH] [ytdlp] Remove ollama_host variable and fallback env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Context Stage 3 of ollama decommission. `ytdlp` had an Ollama fallback path for when OpenRouter models failed. With ollama going away, that fallback is inoperable — removing the variable and two env entries prevents pods from ever attempting to hit a service that no longer exists. ## This change - Drops `variable "ollama_host"` from stacks/ytdlp/main.tf. - Drops the two env entries `OLLAMA_URL` and `OLLAMA_MODEL` (plus their preceding comment) from the yt-highlights container. - Apply: `0 added, 4 changed, 0 destroyed` — deployments rolled out fresh env, plus benign Kyverno ndots drift (already accepted). - Verified `kubectl get deploy -n ytdlp` no longer exposes OLLAMA_URL. ## What is NOT in this change - OpenRouter primary path unchanged. - config.tfvars `ollama_host` still present (stage 7 removes it). ## Test plan ### Automated - `scripts/tg plan` → 4 in-place updates, 0 destroy. - `scripts/tg apply` → "Apply complete! Resources: 0 added, 4 changed, 0 destroyed." ### Manual Verification 1. `kubectl get deploy -n ytdlp -o yaml | grep OLLAMA` → empty. 2. yt-highlights continues processing via OpenRouter (check container logs for successful OpenRouter responses). Co-Authored-By: Claude Opus 4.7 (1M context) --- stacks/ytdlp/main.tf | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/stacks/ytdlp/main.tf b/stacks/ytdlp/main.tf index ee7f1d00..74b89663 100644 --- a/stacks/ytdlp/main.tf +++ b/stacks/ytdlp/main.tf @@ -33,7 +33,6 @@ resource "kubernetes_manifest" "external_secret" { } variable "redis_host" { type = string } -variable "ollama_host" { type = string } resource "kubernetes_namespace" "ytdlp" { @@ -285,15 +284,6 @@ resource "kubernetes_deployment" "yt_highlights" { name = "TORCH_HOME" value = "/data/cache/torch" } - # Ollama fallback for when OpenRouter models fail - env { - name = "OLLAMA_URL" - value = "http://${var.ollama_host}:11434" - } - env { - name = "OLLAMA_MODEL" - value = "qwen2.5:14b" - } volume_mount { name = "data" mount_path = "/data"