Newer
Older
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: winer
labels:
app: winer
namespace: nlpworkers
spec:
replicas: 1
selector:
matchLabels:
app: winer
template:
metadata:
labels:
app: winer
spec:
containers:
- name: winer
image: clarinpl/$CI_PROJECT_NAME:latest
imagePullPolicy: Always
volumeMounts:
- name: config
mountPath: /home/worker/config.ini
subPath: config.ini
- name: samba
mountPath: /samba
- name: models
mountPath: /home/worker/models/
volumes:
- name: config
configMap:
name: winer-config-ini
- name: samba
hostPath:
path: /samba
type: ""
- name: models
hostPath:
path: /tmp/winer-models
type: DirectoryOrCreate