Minecraft
Finally got around to doing this. Now to figure out why.
apiVersion: apps/v1
kind: Deployment
metadata:
name: minecraft
labels:
app: minecraft
spec:
replicas: 1
selector:
matchLabels:
app: minecraft
template:
metadata:
labels:
app: minecraft
spec:
containers:
- name: minecraft
image: itzg/minecraft-server
volumeMounts:
- mountPath: /data
name: minecraft-vol
subPath: data
ports:
- containerPort: 25565
env:
- name: "EULA"
value: "TRUE"
volumes:
- name: minecraft-vol
persistentVolumeClaim:
claimName: minecraft-pvc
---
apiVersion: v1
kind: Service
metadata:
name: minecraft-svc
spec:
selector:
app: minecraft
ports:
- protocol: TCP
port: 25565
targetPort: 25565
type: LoadBalancer