forked from devflowinc/solidjs-search-rag-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
66 lines (66 loc) · 1.46 KB
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
apiVersion: apps/v1
kind: Deployment
metadata:
name: hackernews
namespace: hackernews
labels:
app.kubernetes.io/name: hackernews
spec:
selector:
matchLabels:
app.kubernetes.io/name: hackernews
template:
metadata:
labels:
app.kubernetes.io/name: hackernews
spec:
containers:
- name: hackernews
image: trieve/hn-ui:8
ports:
- containerPort: 80
env:
- name: VITE_TRIEVE_DATASET_ID
value: b96b60eb-cfd1-42c4-9320-78ebef592cfd
- name: VITE_TRIEVE_API_KEY
value: tr-IeuEU6Ni7JmT73eynHMjcaRXiNsjosBl
- name: VITE_TRIEVE_API_URL
value: https://hackernews.withtrieve.com/api
---
kind: Service
apiVersion: v1
metadata:
name: hackernews
namespace: hackernews
labels:
app.kubernetes.io/name: hackernews
spec:
type: ClusterIP
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app.kubernetes.io/name: hackernews
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-hackernews
namespace: hackernews
annotations:
kubernetes.io/ingress.class: gce
external-dns.alpha.kubernetes.io/hostname: "hn.withtrieve.com"
spec:
rules:
- host: "hn.withtrieve.com"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: hackernews
port:
name: http