Skip to content

Commit 0add13c

Browse files
Update missed gateway migration and cert config
1 parent 742a0f4 commit 0add13c

File tree

3 files changed

+30
-21
lines changed

3 files changed

+30
-21
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+

helm-chart/values.yaml

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# LocalAI configuration
2-
fullnameOverride: "localai"
2+
3+
certificate:
4+
create: true
5+
name: localai-tls
6+
dnsNames:
7+
- ai.example.com
8+
issuerRef:
9+
name: selfsigned-issuer
10+
kind: ClusterIssuer
311

412
autoscaling:
513
enabled: false
@@ -83,10 +91,7 @@ gateway:
8391
mode: Terminate
8492
certificateRefs:
8593
- name: localai-tls
86-
kind: Secret
87-
hostnames:
88-
- "ai.example.com"
89-
rules:
94+
rules:
9095
- matches:
9196
- path:
9297
type: PathPrefix

0 commit comments

Comments
 (0)