Migrate all app deployments from Terraform to Argo CD

Move gitea, github-runner, neuron, cloudflared, ollama, verdaccio,
devpi, registry, and registry-ui deployments+services to apps/*.yaml
so Argo CD manages the app layer. Terraform retains namespaces, PVCs,
ConfigMaps, Secrets, and Ingresses.

New Secrets in Terraform:
- kubernetes_secret.github_runner_secret (ci/github-runner-secret)
- kubernetes_secret.cloudflared_secret (neuron/cloudflared-secret)

Hardcoded service names in ingress.tf and neuron.tf to remove
dependency on removed kubernetes_service resources.
This commit is contained in:
Will Anderson
2026-03-23 08:15:17 -05:00
parent b2b04c231c
commit afe01d2ad9
13 changed files with 588 additions and 885 deletions
+1 -91
View File
@@ -25,94 +25,4 @@ resource "kubernetes_persistent_volume_claim" "ollama_models" {
}
}
resource "kubernetes_deployment" "ollama" {
metadata {
name = "ollama"
namespace = kubernetes_namespace.ollama.metadata[0].name
labels = {
app = "ollama"
}
}
spec {
replicas = 1
strategy {
type = "Recreate"
}
selector {
match_labels = {
app = "ollama"
}
}
template {
metadata {
labels = {
app = "ollama"
}
}
spec {
container {
name = "ollama"
image = "ollama/ollama:latest"
port {
container_port = 11434
}
env {
name = "NVIDIA_VISIBLE_DEVICES"
value = "all"
}
volume_mount {
name = "models"
mount_path = "/root/.ollama"
}
resources {
requests = {
memory = "2Gi"
cpu = "500m"
}
limits = {
memory = "8Gi"
cpu = "4"
}
}
}
volume {
name = "models"
persistent_volume_claim {
claim_name = kubernetes_persistent_volume_claim.ollama_models.metadata[0].name
}
}
}
}
}
}
resource "kubernetes_service" "ollama" {
metadata {
name = "ollama"
namespace = kubernetes_namespace.ollama.metadata[0].name
}
spec {
selector = {
app = "ollama"
}
port {
port = 11434
target_port = 11434
node_port = 31434
}
type = "NodePort"
}
}
# Deployment + Service managed by Argo CD — see servers/legion/apps/ollama.yaml