k3scraft

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

bds-deploy.yaml (800B)


      1 # bds-deploy.yaml
      2 apiVersion: apps/v1
      3 kind: Deployment
      4 metadata:
      5   name: minecraft-bds
      6 spec:
      7   replicas: 1
      8   selector:
      9     matchLabels:
     10       app: bds
     11   template:
     12     metadata:
     13       labels:
     14         app: bds
     15     spec:
     16       containers:
     17       - name: bds
     18         image: itzg/minecraft-bedrock-server
     19         env:
     20         - name: EULA
     21           value: "TRUE"
     22         ports:
     23         - containerPort: 19132
     24           protocol: UDP
     25         volumeMounts:
     26         - name: data
     27           mountPath: /data
     28       volumes:
     29       - name: data
     30         persistentVolumeClaim:
     31           claimName: bds-data-pvc
     32 ---
     33 apiVersion: v1
     34 kind: Service
     35 metadata:
     36   name: bds-service
     37 spec:
     38   type: NodePort
     39   selector:
     40     app: bds
     41   ports:
     42     - protocol: UDP
     43       port: 19132
     44       targetPort: 19132
     45       nodePort: 31932