apiVersion: apps/v1
kind: Deployment
metadata:
  name: minecraft-server
  namespace: minecraft
  labels:
    app: minecraft-server
spec:
  replicas: 1
  selector:
    matchLabels:
      app: minecraft-server
  template:
    metadata:
      labels:
        app: minecraft-server
    spec:
      volumes:
      - name: minecraft-data
        persistentVolumeClaim:
          claimName: minecraft-data-pvc
      containers:
      - name: minecraft-server
        image: mlinarik/minecraft:paper-1.16.5-740
        securityContext:
          privileged: false
          allowPrivilegeEscalation: false
        resources:
          limits:
            memory: 8Gi
          requests:
            memory: 4Gi
        ports:
        - containerPort: 25565
          name: minecraft
        volumeMounts:
          - name: minecraft-data
            mountPath:  /mcdata
      nodeSelector:
        disktype: ssdf
