new deploy scheme

This commit is contained in:
ducoterra
2020-05-10 12:43:13 -04:00
parent abc90be8e4
commit a664b5230e
12 changed files with 18 additions and 18 deletions

View File

@@ -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 .

View File

@@ -1,4 +1,4 @@
# Minecraft
# Pubcraft
## Getting server.jar

View File

@@ -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:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 348 KiB

View File

@@ -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

View File

@@ -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

View File

@@ -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.

View File

@@ -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