Add minecraft app deployment draft
This commit is contained in:
parent
2c870cd45e
commit
cd19f903c6
23
minecraft/deployment.yaml
Normal file
23
minecraft/deployment.yaml
Normal 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
15
minecraft/ingress.yaml
Normal 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
11
minecraft/service.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user