-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8s_deployment_gateway.yaml
66 lines (66 loc) · 2.09 KB
/
k8s_deployment_gateway.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
---
# Gateway deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: llm-gateway
namespace: rse
labels:
app.kubernetes.io/name: llm-gateway
app.kubernetes.io/component: server
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: llm-gateway
app.kubernetes.io/component: server
template:
metadata:
labels:
app.kubernetes.io/name: llm-gateway
app.kubernetes.io/component: server
spec:
volumes:
- name: certificate-volume
secret:
secretName: llm-gatewaysaml-secret
containers:
- name: gateway
image: harbor.cs.aalto.fi/aaltorse-public/llm_gateway:CORS #Lets start versioning this
ports:
- containerPort: 3000
resources:
requests:
# Maybe needs to be increased later on.
cpu: 2
env:
# Mongo settings ( port will be default )
- {
name: MONGOUSER,
valueFrom: { secretKeyRef: { name: mongo, key: user } },
}
- {
name: MONGOPASSWORD,
valueFrom: { secretKeyRef: { name: mongo, key: password } },
}
- { name: MONGOHOST, value: "llm-mongo-svc" }
- { name: LLM_BASE_URL, value: "https://llm.k8s-test.cs.aalto.fi" }
# Redis
- { name: REDISHOST, value: "llm-redis-svc" }
- { name: REDISPORT, value: "6379" }
# This is the admin key, which allows generation/removal of additional keys
- {
name: ADMIN_KEY,
valueFrom:
{ secretKeyRef: { name: llm-gateway, key: gateway_key } },
}
# This is the key for the INFERENCE Server
- {
name: INFERENCE_KEY,
valueFrom:
{ secretKeyRef: { name: llm-gateway, key: inference_key } },
}
volumeMounts:
- mountPath: /app/saml/saml_data/certs
name: certificate-volume
readOnly: true