summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorLoïc Blot <nerzhul@users.noreply.github.com>2018-12-15 15:12:40 +0100
committerGitHub <noreply@github.com>2018-12-15 15:12:40 +0100
commit24cdbe9bf5fae88d76252add1b4ba0f8a7d48697 (patch)
treec137ddc3fb21aa9e6e4f0b29ea92c9bd90c0dd9f /misc
parent7efb407872bcd8644fe97d8faff846f65190b4fe (diff)
downloadminetest-24cdbe9bf5fae88d76252add1b4ba0f8a7d48697.tar.gz
minetest-24cdbe9bf5fae88d76252add1b4ba0f8a7d48697.tar.bz2
minetest-24cdbe9bf5fae88d76252add1b4ba0f8a7d48697.zip
Add a basic kubernetes deployment file (#7979)
* Add a basic kubernetes deployment file
Diffstat (limited to 'misc')
-rw-r--r--misc/kubernetes.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/misc/kubernetes.yml b/misc/kubernetes.yml
new file mode 100644
index 000000000..1a956abe9
--- /dev/null
+++ b/misc/kubernetes.yml
@@ -0,0 +1,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