new deploy scheme
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
FROM openjdk:8-slim
|
||||
|
||||
RUN apt update && apt install -y rsync
|
||||
RUN apt update && apt install -y rsync htop
|
||||
|
||||
WORKDIR /mc_server
|
||||
COPY ./server .
|
||||
|
||||
@@ -3,7 +3,7 @@ version: '3'
|
||||
services:
|
||||
minecraft:
|
||||
build: .
|
||||
image: hub.ducoterra.net/ducoterra/minecraft:20w12a.7
|
||||
image: hub.ducoterra.net/ducoterra/pubcraft:1.15.2_3
|
||||
ports:
|
||||
- 25565:25565
|
||||
volumes:
|
||||
|
||||
BIN
img/edit.png
BIN
img/edit.png
Binary file not shown.
|
Before Width: | Height: | Size: 481 KiB |
BIN
img/main.png
BIN
img/main.png
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 MiB |
BIN
img/menu.png
BIN
img/menu.png
Binary file not shown.
|
Before Width: | Height: | Size: 476 KiB |
BIN
img/server.png
BIN
img/server.png
Binary file not shown.
|
Before Width: | Height: | Size: 348 KiB |
@@ -1,19 +1,19 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: minecraft
|
||||
name: pubcraft
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: minecraft
|
||||
app: pubcraft
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: minecraft
|
||||
app: pubcraft
|
||||
spec:
|
||||
containers:
|
||||
- name: minecraft
|
||||
image: hub.ducoterra.net/ducoterra/minecraft:20w12a.7
|
||||
- name: pubcraft
|
||||
image: hub.ducoterra.net/ducoterra/pubcraft:1.15.2_3
|
||||
ports:
|
||||
- containerPort: 25565
|
||||
volumeMounts:
|
||||
@@ -23,7 +23,7 @@ spec:
|
||||
stdin: true
|
||||
env:
|
||||
- name: MAX_RAM
|
||||
value: "4"
|
||||
value: "8"
|
||||
- name: MIN_RAM
|
||||
value: "1"
|
||||
- name: THREADS
|
||||
@@ -33,9 +33,9 @@ spec:
|
||||
memory: "2Gi"
|
||||
cpu: 250m
|
||||
limits:
|
||||
memory: "4Gi"
|
||||
memory: "8Gi"
|
||||
cpu: "4"
|
||||
volumes:
|
||||
- name: data
|
||||
persistentVolumeClaim:
|
||||
claimName: minecraft
|
||||
claimName: pubcraft
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: minecraft
|
||||
name: pubcraft
|
||||
spec:
|
||||
storageClassName: nfs-encrypted
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 64Gi
|
||||
storage: 16Gi
|
||||
@@ -1,12 +1,12 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: minecraft
|
||||
name: pubcraft
|
||||
spec:
|
||||
selector:
|
||||
app: minecraft
|
||||
app: pubcraft
|
||||
ports:
|
||||
- port: 25565
|
||||
- port: 20100
|
||||
targetPort: 25565
|
||||
name: minecraft
|
||||
name: pubcraft
|
||||
type: LoadBalancer
|
||||
Binary file not shown.
@@ -25,7 +25,7 @@ server-ip=
|
||||
spawn-npcs=true
|
||||
allow-flight=true
|
||||
level-name=world
|
||||
view-distance=10
|
||||
view-distance=32
|
||||
resource-pack=
|
||||
spawn-animals=true
|
||||
white-list=true
|
||||
|
||||
Reference in New Issue
Block a user