From 460fdedf50740c57bef69f131cee361eb3c018c9 Mon Sep 17 00:00:00 2001 From: Eric Meehan Date: Wed, 29 Oct 2025 09:22:15 -0400 Subject: [PATCH] Updates to LocalAI, Discourse, and Owncast --- tasks/discourse.yaml | 7 +++++++ tasks/localai.yaml | 27 +++++++++++++++++++++++++-- tasks/main.yaml | 2 +- tasks/owncast.yaml | 3 +++ 4 files changed, 36 insertions(+), 3 deletions(-) diff --git a/tasks/discourse.yaml b/tasks/discourse.yaml index d712750..8f3c07b 100644 --- a/tasks/discourse.yaml +++ b/tasks/discourse.yaml @@ -22,6 +22,8 @@ password: "{{ discourse_admin_password }}" image: debug: false + repository: bitnamilegacy/discourse + tag: 3.4.7-debian-12-r0 service: externalTrafficPolicy: Local discourse: @@ -32,6 +34,7 @@ - https://github.com/discourse/discourse-activity-pub - https://github.com/discourse/discourse-openid-connect - https://github.com/jonmbake/discourse-ldap-auth + - https://github.com/discourse/discourse-math - https://github.com/discourse/discourse-post-voting - https://github.com/discourse/discourse-prometheus - https://github.com/discourse/discourse-reactions @@ -58,6 +61,8 @@ tls: true postgresql: enabled: true + image: + repository: bitnamilegacy/postgresql auth: enablePostgresUser: true postgresPassword: "{{ discourse_admin_password }}" @@ -67,5 +72,7 @@ size: 2Ti redis: enabled: true + image: + repository: bitnamilegacy/redis auth: password: "{{ discourse_admin_password }}" diff --git a/tasks/localai.yaml b/tasks/localai.yaml index 3025ea5..127816f 100644 --- a/tasks/localai.yaml +++ b/tasks/localai.yaml @@ -17,12 +17,21 @@ release_namespace: localai create_namespace: true values: - service: - type: LoadBalancer deployment: image: tag: latest-gpu-nvidia-cuda-12 runtimeClassName: nvidia + secretEnv: + - name: LOCALAI_DISABLE_WEBUI + value: "true" + - name: LOCALAI_API_KEY + value: "{{ localai_api_keys | join(',') }}" + - name: LOCALAI_WATCHDOG_IDLE + value: "true" + - name: LOCALAI_WATCHDOG_IDLE_TIMEOUT + value: "5m" + - name: LOCALAI_WATCHDOG_BUSY + value: "true" resources: limits: nvidia.com/gpu: 1 @@ -36,3 +45,17 @@ operator: Equal value: GPU effect: NoSchedule + ingress: + enabled: true + className: nginx + annotations: + cert-manager.io/cluster-issuer: ca-issuer + hosts: + - host: localai.eom.dev + paths: + - path: / + pathType: ImplementationSpecific + tls: + - secretName: localai-tls + hosts: + - localai.eom.dev diff --git a/tasks/main.yaml b/tasks/main.yaml index 92367fb..b3e1870 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -3,4 +3,4 @@ - name: Deploy include_tasks: "{{ item }}" loop: - - nextcloud.yaml + - localai.yaml diff --git a/tasks/owncast.yaml b/tasks/owncast.yaml index 1dd88c4..a81ebfb 100644 --- a/tasks/owncast.yaml +++ b/tasks/owncast.yaml @@ -49,6 +49,9 @@ containers: - name: owncast image: owncast/owncast:0.2.0 + resources: + requests: + cpu: 1.5 volumeMounts: - name: data mountPath: /app/data