-
Notifications
You must be signed in to change notification settings - Fork 879
/
qa-controller.yaml
37 lines (37 loc) · 1.24 KB
/
qa-controller.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
apiVersion: v1
kind: ReplicationController
metadata:
labels:
name: qa
name: qa-controller
spec:
replicas: 1
selector:
name: qa
template:
metadata:
labels:
name: qa
spec:
dnsPolicy: Default
containers:
- image: claritylab/lucida:v2.2
command: ['/bin/sh', '-c']
# Delete " && export wiki_indri_index=/usr/local/lucida/lucida/questionanswering/OpenEphyra/db/wiki_indri_index"
# if you don't want to use Wikipedia as an additional knowledge base.
args: ['cd $LUCIDAROOT/questionanswering/OpenEphyra/ && export wiki_indri_index=/usr/local/lucida/lucida/questionanswering/OpenEphyra/db/wiki_indri_index && ./start_server.sh']
name: qa
ports:
- containerPort: 8083
name: thrift
volumeMounts:
- mountPath: /usr/local/lucida/lucida/questionanswering/OpenEphyra/db
name: openephyra-persistent-storage
readOnly: false
volumes:
- hostPath:
# Modify the path below.
path: /home/lucida_data/openephyra
# Move "wiki_indri_index" to the above directory
# if it has been downloaded from "../download_wiki_index.sh".
name: openephyra-persistent-storage