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