-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathkubernetes.yaml
71 lines (71 loc) · 1.25 KB
/
kubernetes.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
64
65
66
67
68
69
70
71
#
# Listen to registry webhook
#
apiVersion: v1
kind: Service
metadata:
name: imagewolf
labels:
app: imagewolf
spec:
type: LoadBalancer
ports:
- name: api-port
port: 80
targetPort: 8000
selector:
app: imagewolf
---
#
# Headless service used to discover peers
#
apiVersion: v1
kind: Service
metadata:
name: imagewolf-headless
labels:
app: imagewolf
spec:
clusterIP: None
ports:
- name: torrent-client
port: 6000
targetPort: 6000
selector:
app: imagewolf
---
#
# DaemonSet to make sure we have ImageWolf deployed on every nodes
#
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: imagewolf
spec:
selector:
matchLabels:
app: imagewolf
template:
metadata:
name: imagewolf
labels:
app: imagewolf
spec:
containers:
- name: imagewolf
image: moredhel/imagewolf:v8
env:
- name: LOOKUP_HOST
value: imagewolf-headless
- name: DOCKER_API_VERSION
value: "1.23"
ports:
- containerPort: 6000
- containerPort: 8000
volumeMounts:
- name: docker
mountPath: /var/run/docker.sock
volumes:
- name: docker
hostPath:
path: /var/run/docker.sock