-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
57 lines (57 loc) · 1 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
apiVersion: v1
kind: Pod
metadata:
name: kvagent
labels:
app.kubernetes.io/name: kvagent
spec:
serviceAccountName: kvagent-serviceaccount
containers:
- image: quay.io/vladikr/kvagent:devel
name: kvagent
imagePullPolicy: Always
envFrom:
- secretRef:
name: kvagent-secret
ports:
- containerPort: 8501
name: kvagent
protocol: TCP
volumeMounts:
- name: modelcache
mountPath: /app/models
- name: db
mountPath: /app/db
volumes:
- name: modelcache
emptyDir: {}
- name: db
emptyDir: {}
---
apiVersion: v1
kind: Service
metadata:
name: kvagent
spec:
type: NodePort
ports:
- name: "kvagent"
port: 8501
targetPort: 8501
selector:
app.kubernetes.io/name: kvagent
---
apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: kvagent
spec:
subdomain: kvagent
port:
targetPort: 8501
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: kvagent