apiVersion: v1
kind: Service
metadata:
  name: minecraft-server
  namespace: minecraft
  labels:
    app: minecraft-server
spec:
  type: NodePort
  ports:
    - port: 25565
      nodePort: 30565
  selector:
    app: minecraft-server
