Advertisement
Guest User

basicserver.yaml

a guest
Jan 22nd, 2022
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: vanilla-mc
  5. namespace: umbcraft
  6. labels:
  7. app: vanilla-mc
  8.  
  9. spec:
  10. replicas: 1
  11.  
  12. selector:
  13. matchLabels:
  14. app: vanilla-mc
  15.  
  16. template:
  17. metadata:
  18. labels:
  19. app: vanilla-mc
  20.  
  21. spec:
  22. imagePullSecrets:
  23. - name: umbcraftregistry
  24.  
  25. volumes:
  26. - name: worldfiles
  27. persistentVolumeClaim:
  28. claimName: nfs-server
  29. # claimName: ssd-volume-claim
  30.  
  31. containers:
  32. - name: vanilla-mc
  33. env:
  34. - name: ram
  35. value: "3000"
  36. image: docker.umbcraft.online/umbcraft-scalable:paper.18
  37. imagePullPolicy: Always
  38.  
  39. volumeMounts:
  40. - name: worldfiles
  41. mountPath: /world
  42.  
  43. resources:
  44. requests:
  45. memory: "4000M"
  46. limits:
  47. memory: "4000M"
  48.  
  49. # set to false so that ctrl-c doesn't kill the server; will only detach the attached session
  50. tty: false
  51. stdin: true
  52. ports:
  53. - containerPort: 25565
  54. protocol: TCP
  55.  
  56. ---
  57.  
  58. apiVersion: v1
  59. kind: Service
  60. metadata:
  61. name: mc-service
  62. namespace: umbcraft
  63. spec:
  64. selector:
  65. app: vanilla-mc
  66. type: NodePort
  67. ports:
  68. - protocol: TCP
  69. # port exposed to cluster by service
  70. port: 25565
  71. # containerPort; actual appl. port
  72. targetPort: 25565
  73.  
  74. # port exposed to outside by node
  75. nodePort: 30000
  76.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement