Skip to content

Commit b8cb3f0

Browse files
committed
Add sample k8s and docker-compose config
1 parent f0ee8be commit b8cb3f0

File tree

5 files changed

+92
-0
lines changed

5 files changed

+92
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,3 +58,5 @@ Temporary Items
5858
.history/
5959

6060

61+
### Docker compose volumes
62+
/boincdata/

docker-compose.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
version: "3.7"
2+
3+
services:
4+
boinc-client:
5+
container_name: boinc-client
6+
image: ghcr.io/0rax/boinc-client
7+
environment:
8+
TZ: Etc/UTC
9+
restart: always
10+
ports:
11+
- 31416:31416/tcp
12+
volumes:
13+
- ./boincdata:/var/lib/boinc
14+
networks:
15+
- boinc
16+
17+
networks:
18+
boinc:
19+
20+
volumes:
21+
boincdata: {}

k8s/namespace.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
apiVersion: v1
3+
kind: Namespace
4+
metadata:
5+
name: boinc

k8s/service.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: boinc-client
6+
namespace: boinc
7+
labels:
8+
app: boinc-client
9+
spec:
10+
ports:
11+
- port: 31416
12+
name: manager
13+
protocol: TCP
14+
selector:
15+
app: boinc-client

k8s/statefulset.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: StatefulSet
4+
metadata:
5+
name: boinc-client
6+
namespace: boinc
7+
spec:
8+
serviceName: boinc-client
9+
replicas: 1
10+
selector:
11+
matchLabels:
12+
app: boinc-client
13+
template:
14+
metadata:
15+
labels:
16+
app: boinc-client
17+
spec:
18+
containers:
19+
- name: boinc-client
20+
image: ghcr.io/0rax/boinc-client
21+
imagePullPolicy: Always
22+
env:
23+
- name: BOINC_GUI_RPC_PASSWORD
24+
value: "CHANGE ME !"
25+
- name: BOINC_CMD_LINE_OPTIONS
26+
value: "--allow_remote_gui_rpc"
27+
volumeMounts:
28+
- mountPath: /var/lib/boinc
29+
name: boincdata
30+
ports:
31+
- containerPort: 31416
32+
name: manager
33+
protocol: TCP
34+
hostPort: 31416
35+
resources:
36+
requests:
37+
memory: "256Mi"
38+
cpu: "1000m"
39+
limits:
40+
memory: "512Mi"
41+
cpu: "3200m"
42+
volumeClaimTemplates:
43+
- metadata:
44+
name: boincdata
45+
spec:
46+
accessModes: [ "ReadWriteOnce" ]
47+
resources:
48+
requests:
49+
storage: 1Gi

0 commit comments

Comments
 (0)