Skip to content

Commit 2a30abd

Browse files
committed
wip
1 parent 6e128f9 commit 2a30abd

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

apps/declaratii-avere/service-typesense.yaml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ spec:
99
annotations:
1010
autoscaling.knative.dev/min-scale: "1"
1111
autoscaling.knative.dev/max-scale: "1"
12+
labels:
13+
app: typesense
1214
spec:
1315
containers:
1416
- image: typesense/typesense:29.0
@@ -20,13 +22,11 @@ spec:
2022
cpu: 1000m
2123
memory: 2048M
2224
ports:
23-
- containerPort: 80
25+
- containerPort: 8108
2426
volumeMounts:
2527
- mountPath: /typesense-data
2628
name: typesense-data
2729
env:
28-
- name: TYPESENSE_API_PORT
29-
value: "80"
3030
- name: TYPESENSE_DATA_DIR
3131
value: "/typesense-data"
3232
- name: TYPESENSE_ENABLE_CORS
@@ -40,4 +40,18 @@ spec:
4040
- name: typesense-data
4141
persistentVolumeClaim:
4242
claimName: declaratii-avere-pvc
43-
readOnly: false
43+
---
44+
apiVersion: v1
45+
kind: Service
46+
metadata:
47+
name: typesense-clusterip
48+
namespace: declaratii-avere
49+
spec:
50+
selector:
51+
app: typesense
52+
type: ClusterIP
53+
ports:
54+
- protocol: TCP
55+
name: http
56+
port: 8108
57+
targetPort: 8108

0 commit comments

Comments
 (0)