-
Notifications
You must be signed in to change notification settings - Fork 9
/
k8s-deployment.yaml
39 lines (39 loc) · 990 Bytes
/
k8s-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
apiVersion: v1
kind: ReplicationController
metadata:
name: rustacean-worker
spec:
replicas: 1
template:
metadata:
name: rustacean-worker
labels:
app: rustacean-worker
spec:
containers:
- name: rustacean
image: kryod/rustacean:latest
imagePullPolicy: Always
volumeMounts:
- name: log
mountPath: "/home/rustacean.log"
- name: config
mountPath: "/home/config.toml"
- name: dockersock
mountPath: "/var/run/docker.sock"
- name: sqlite
mountPath: "/home/rustacean.sqlite3"
restartPolicy: OnFailure
volumes:
- name: dockersock
hostPath:
path: /var/run/docker.sock
- name: log
hostPath:
path: ./rustacean.log
- name: config
hostPath:
path: ./config.toml
- name: sqlite
hostPath:
path: ./rustacean.sqlite3