Add minecraft app deployment draft

This commit is contained in:
Tanguy Herbron 2022-05-11 01:24:04 +02:00
parent 2c870cd45e
commit cd19f903c6
3 changed files with 49 additions and 0 deletions

23
minecraft/deployment.yaml Normal file
View File

@ -0,0 +1,23 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: minecraft
spec:
replicas: 1
selector:
matchLabels:
app: minecraft
template:
metadata:
labels:
app: minecraft
spec:
containers:
- name: minecraft
image: itzg/minecraft-server
ports:
- containerPort: 25565
protocol: UDP
env:
- name: EULA
value: "TRUE"

15
minecraft/ingress.yaml Normal file
View File

@ -0,0 +1,15 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRouteUDP
metadata:
name: minecraft-ingress-udp
annotations:
kubernetes.io/ingress.class: "traefik"
spec:
entryPoints:
- minecraft-udp
routes:
- services:
- name: minecraft
port: 25565

11
minecraft/service.yaml Normal file
View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: minecraft-svc
spec:
ports:
- name: minecraft-udp
port: 25565
protocol: UDP
selector:
app: minecraft