truenas compatibility update
This commit is contained in:
@@ -2,7 +2,8 @@ FROM openjdk:8-slim
|
||||
|
||||
COPY server.jar /server.jar
|
||||
|
||||
RUN groupadd -r minecraft && useradd --no-log-init -r -g minecraft minecraft
|
||||
RUN groupadd -r minecraft -g 2000
|
||||
RUN useradd --no-log-init minecraft -u 2000 -g 2000 -m
|
||||
WORKDIR /mc_data
|
||||
RUN chown -R minecraft:minecraft .
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
apiVersion: v2
|
||||
name: helm
|
||||
description: A Helm chart for Kubernetes
|
||||
name: minecraft
|
||||
description: A Minecraft server for kubernetes
|
||||
|
||||
# A chart can be either an 'application' or a 'library' chart.
|
||||
#
|
||||
@@ -15,9 +15,9 @@ type: application
|
||||
# This is the chart version. This version number should be incremented each time you make changes
|
||||
# to the chart and its templates, including the app version.
|
||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||
version: 0.1.0
|
||||
version: 1.0.1
|
||||
|
||||
# This is the version number of the application being deployed. This version number should be
|
||||
# incremented each time you make changes to the application. Versions are not expected to
|
||||
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||
appVersion: 1.16.0
|
||||
appVersion: 1.16.4
|
||||
|
||||
3
helm/README.md
Normal file
3
helm/README.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Minecraft Server
|
||||
|
||||
Creates a vanilla Minecraft server.
|
||||
3
helm/app-readme.md
Normal file
3
helm/app-readme.md
Normal file
@@ -0,0 +1,3 @@
|
||||
# Minecraft Server
|
||||
|
||||
Creates a vanilla Minecraft server.
|
||||
1
helm/ix_values.yaml
Normal file
1
helm/ix_values.yaml
Normal file
@@ -0,0 +1 @@
|
||||
image: ducoterra/minecraft:1.16.4
|
||||
30
helm/questions.yaml
Normal file
30
helm/questions.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
groups:
|
||||
- name: "Server Config"
|
||||
description: "Minecraft Server Configuration"
|
||||
- name: "Storage"
|
||||
description: "Minecraft Server Storage"
|
||||
questions:
|
||||
- variable: port
|
||||
description: "Listen Port"
|
||||
group: "Server Config"
|
||||
label: "Port"
|
||||
schema:
|
||||
type: int
|
||||
default: 25565
|
||||
required: true
|
||||
- variable: max_ram
|
||||
description: "Total RAM allocated to the server"
|
||||
group: "Server Config"
|
||||
label: "RAM Limit (GiB)"
|
||||
schema:
|
||||
type: int
|
||||
default: 4
|
||||
required: true
|
||||
- variable: max_cpu
|
||||
description: "# CPU Cores Allocated to the server"
|
||||
group: "Server Config"
|
||||
label: "CPU Limit (# Cores)"
|
||||
schema:
|
||||
type: int
|
||||
default: 4
|
||||
required: true
|
||||
@@ -6,6 +6,8 @@ spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: {{ .Release.Name }}
|
||||
updateStrategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
@@ -46,3 +48,5 @@ spec:
|
||||
- name: properties
|
||||
configMap:
|
||||
name: {{ .Release.Name }}
|
||||
securityContext:
|
||||
fsGroup: 2000
|
||||
|
||||
42
helm/values.yaml
Normal file
42
helm/values.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
image: ducoterra/minecraft:1.16.4
|
||||
port: 20101
|
||||
max_cpu: 4
|
||||
max_ram: 4
|
||||
server_props: |
|
||||
max-tick-time=60000
|
||||
generator-settings=
|
||||
force-gamemode=false
|
||||
allow-nether=true
|
||||
gamemode=0
|
||||
broadcast-console-to-ops=true
|
||||
enable-query=false
|
||||
player-idle-timeout=0
|
||||
difficulty=3
|
||||
spawn-monsters=true
|
||||
op-permission-level=4
|
||||
pvp=true
|
||||
snooper-enabled=true
|
||||
level-type=default
|
||||
hardcore=false
|
||||
enable-command-block=false
|
||||
max-players=20
|
||||
network-compression-threshold=256
|
||||
resource-pack-sha1=
|
||||
max-world-size=29999984
|
||||
server-port=25565
|
||||
server-ip=
|
||||
spawn-npcs=true
|
||||
allow-flight=true
|
||||
level-name=world
|
||||
view-distance=32
|
||||
resource-pack=
|
||||
spawn-animals=true
|
||||
white-list=true
|
||||
generate-structures=true
|
||||
online-mode=true
|
||||
max-build-height=256
|
||||
level-seed=
|
||||
prevent-proxy-connections=false
|
||||
use-native-transport=true
|
||||
motd=This is gonna be interesting
|
||||
enable-rcon=false
|
||||
Reference in New Issue
Block a user