K3s-cluster/minecraft/deployment.yaml

24 lines
439 B
YAML

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"