Skip to content

Commit 16cb59b

Browse files
Fix gateway migration / add LocalAI env values / add test cert (#39)
1 parent 742a0f4 commit 16cb59b

File tree

2 files changed

+20
-16
lines changed

2 files changed

+20
-16
lines changed

helm-chart/localai-values.yaml

+3-16
Original file line numberDiff line numberDiff line change
@@ -8,27 +8,14 @@ service:
88

99
# Gateway API disabled (using ingress instead)
1010
gateway:
11-
enabled: false
12-
13-
# Ingress configuration
14-
ingress:
1511
enabled: true
16-
className: nginx
17-
annotations:
18-
cert-manager.io/cluster-issuer: selfsigned-issuer
19-
hosts:
20-
- host: example.local
21-
paths:
22-
- path: /
23-
pathType: Prefix
24-
tls:
25-
- secretName: example-cert-tls
26-
hosts:
27-
- example.local
2812

2913
# LocalAI configuration
3014
localai:
3115
enabled: true
16+
env:
17+
CONTEXT_SIZE: "0"
18+
THREADS: "4"
3219
persistence:
3320
models:
3421
enabled: true

helm-chart/test-certificate.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
apiVersion: cert-manager.io/v1
2+
kind: Certificate
3+
metadata:
4+
name: test-cert
5+
namespace: localai
6+
spec:
7+
secretName: test-cert-tls
8+
duration: 2160h # 90 days
9+
renewBefore: 360h # 15 days
10+
commonName: test.local
11+
dnsNames:
12+
- test.local
13+
issuerRef:
14+
name: selfsigned-issuer
15+
kind: ClusterIssuer
16+
group: cert-manager.io
17+

0 commit comments

Comments
 (0)