forked from minetest/minetest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkubernetes.yml
53 lines (53 loc) · 1.01 KB
/
kubernetes.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
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: freecraft
name: freecraft
namespace: default
spec:
selector:
matchLabels:
app: freecraft
template:
metadata:
labels:
app: freecraft
spec:
containers:
- image: registry.gitlab.com/minetest/minetest/server:master
name: freecraft
ports:
- containerPort: 30000
protocol: UDP
volumeMounts:
- mountPath: /var/lib/freecraft
name: freecraft-data
- mountPath: /etc/freecraft
name: config
restartPolicy: Always
volumes:
- name: freecraft-data
persistentVolumeClaim:
claimName: freecraft-data
- configMap:
defaultMode: 420
name: freecraft
name: config
---
apiVersion: v1
kind: Service
metadata:
labels:
app: freecraft
name: freecraft
namespace: default
spec:
ports:
- name: freecraft
port: 30000
protocol: UDP
selector:
app: freecraft
type: NodePort