-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path10-taskserver-deployment.yaml
63 lines (63 loc) · 1.64 KB
/
10-taskserver-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
apiVersion: apps/v1
kind: Deployment
metadata:
name: taskserver-deployment
labels:
app: taskserver
spec:
selector:
matchLabels:
app: taskserver
template:
metadata:
labels:
app: taskserver
spec:
containers:
- image: yhaenggi/taskserver:v1.1.0
imagePullPolicy: Always
name: taskserver-taskd-container
stdin: true
tty: true
env:
- name: TASKDDATA
value: "/home/taskserver/.taskserver"
ports:
# TCP port for taskd
- containerPort: 53589
readinessProbe:
tcpSocket:
port: 53589
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
tcpSocket:
port: 53589
initialDelaySeconds: 30
periodSeconds: 10
volumeMounts:
- mountPath: /home/taskserver/.taskserver
name: taskserver-folder
- mountPath: /home/taskserver/.taskserver/ssl
name: taskserver-ssl
- mountPath: /home/taskserver/.taskserver/orgs
name: taskserver-orgs
- mountPath: /home/taskserver/.taskserver/config
name: taskserver-config
subPath: config
securityContext:
runAsUser: 911
readOnlyRootFilesystem: true
runAsNonRoot: true
volumes:
- name: taskserver-folder
emptyDir: {}
- name: taskserver-ssl
secret:
secretName: taskserver-ssl
- name: taskserver-orgs
persistentVolumeClaim:
claimName: taskserver-orgs
- name: taskserver-config
configMap:
name: taskserver-config