summaryrefslogtreecommitdiff
path: root/misc/kubernetes.yml
blob: 1a956abe9998ca574f3418dad33e9952883a4e1a (plain)
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: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    app: minetest
  name: minetest
  namespace: default
spec:
  selector:
    matchLabels:
      app: minetest
  template:
    metadata:
      labels:
        app: minetest
    spec:
      containers:
      - image: registry.gitlab.com/minetest/minetest/server:master
        name: minetest
        ports:
        - containerPort: 30000
          protocol: UDP
        volumeMounts:
        - mountPath: /var/lib/minetest
          name: minetest-data
        - mountPath: /etc/minetest
          name: config
      restartPolicy: Always
      volumes:
      - name: minetest-data
        persistentVolumeClaim:
          claimName: minetest-data
      - configMap:
          defaultMode: 420
          name: minetest
        name: config
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: minetest
  name: minetest
  namespace: default
spec:
  ports:
  - name: minetest
    port: 30000
    protocol: UDP
  selector:
    app: minetest
  type: NodePort