Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: vanilla-mc
- namespace: umbcraft
- labels:
- app: vanilla-mc
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: vanilla-mc
- template:
- metadata:
- labels:
- app: vanilla-mc
- spec:
- imagePullSecrets:
- - name: umbcraftregistry
- volumes:
- - name: worldfiles
- persistentVolumeClaim:
- claimName: nfs-server
- # claimName: ssd-volume-claim
- containers:
- - name: vanilla-mc
- env:
- - name: ram
- value: "3000"
- image: docker.umbcraft.online/umbcraft-scalable:paper.18
- imagePullPolicy: Always
- volumeMounts:
- - name: worldfiles
- mountPath: /world
- resources:
- requests:
- memory: "4000M"
- limits:
- memory: "4000M"
- # set to false so that ctrl-c doesn't kill the server; will only detach the attached session
- tty: false
- stdin: true
- ports:
- - containerPort: 25565
- protocol: TCP
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: mc-service
- namespace: umbcraft
- spec:
- selector:
- app: vanilla-mc
- type: NodePort
- ports:
- - protocol: TCP
- # port exposed to cluster by service
- port: 25565
- # containerPort; actual appl. port
- targetPort: 25565
- # port exposed to outside by node
- nodePort: 30000
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement