mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
4f06df719d
https://kubernetes.io/docs/reference/using-api/deprecation-guide/#deployment-v116 K8s Version v1.16 doesn't allow `extensions/v1beta1` as API version.
54 lines
1.0 KiB
YAML
54 lines
1.0 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
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
|