-
Notifications
You must be signed in to change notification settings - Fork 0
/
crew-mc.yml
78 lines (78 loc) · 1.57 KB
/
crew-mc.yml
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
72
73
74
75
76
77
78
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: minecraft-crew
namespace: minecraft-crew
spec:
replicas: 1
selector:
matchLabels:
app: minecraft-crew
template:
metadata:
labels:
app: minecraft-crew
spec:
volumes:
- name: minecraft-crew
persistentVolumeClaim:
claimName: minecraft-crew
containers:
- name: minecraft-crew
image: ghcr.io/jwklijnsma/minecraft-crew:main
volumeMounts:
- name: minecraft-crew
mountPath: /home/alex/minecraft
ports:
- containerPort: 25565
hostPort: 25565
name: minecraftcrew03
protocol: UDP
- containerPort: 25565
hostPort: 25565
name: minecraftcrew02
protocol: TCP
- containerPort: 19132
hostPort: 19132
name: minecraftcrew01
protocol: UDP
dnsPolicy: "None"
dnsConfig:
nameservers:
- 10.0.4.2
---
apiVersion: v1
kind: Service
metadata:
name: minecraft-crew
namespace: minecraft-crew
spec:
ports:
- name: minecraftcrew03
port: 25565
protocol: UDP
targetPort: 25565
- name: minecraftcrew02
port: 25565
protocol: TCP
targetPort: 25565
- name: minecraftcrew01
port: 19132
protocol: UDP
targetPort: 19132
selector:
app: minecraft-crew
type: LoadBalancer
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: minecraft-crew
namespace: minecraft-crew
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi