From 16cb59b7085bcfef8bbb5603f294bc7a236eb907 Mon Sep 17 00:00:00 2001 From: mattfsourcecode <24415914+mattfsourcecode@users.noreply.github.com> Date: Wed, 12 Feb 2025 23:34:35 -0500 Subject: [PATCH] Fix gateway migration / add LocalAI env values / add test cert (#39) --- helm-chart/localai-values.yaml | 19 +++---------------- helm-chart/test-certificate.yaml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 helm-chart/test-certificate.yaml diff --git a/helm-chart/localai-values.yaml b/helm-chart/localai-values.yaml index 10851e2..914f915 100644 --- a/helm-chart/localai-values.yaml +++ b/helm-chart/localai-values.yaml @@ -8,27 +8,14 @@ service: # Gateway API disabled (using ingress instead) gateway: - enabled: false - -# Ingress configuration -ingress: enabled: true - className: nginx - annotations: - cert-manager.io/cluster-issuer: selfsigned-issuer - hosts: - - host: example.local - paths: - - path: / - pathType: Prefix - tls: - - secretName: example-cert-tls - hosts: - - example.local # LocalAI configuration localai: enabled: true + env: + CONTEXT_SIZE: "0" + THREADS: "4" persistence: models: enabled: true diff --git a/helm-chart/test-certificate.yaml b/helm-chart/test-certificate.yaml new file mode 100644 index 0000000..52e2c8b --- /dev/null +++ b/helm-chart/test-certificate.yaml @@ -0,0 +1,17 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: test-cert + namespace: localai +spec: + secretName: test-cert-tls + duration: 2160h # 90 days + renewBefore: 360h # 15 days + commonName: test.local + dnsNames: + - test.local + issuerRef: + name: selfsigned-issuer + kind: ClusterIssuer + group: cert-manager.io +