Skip to content

Instantly share code, notes, and snippets.

@sr229
Last active October 17, 2020 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sr229/bdd810bdc222dd81452425d1b01daac6 to your computer and use it in GitHub Desktop.
Save sr229/bdd810bdc222dd81452425d1b01daac6 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: fabric-suzuhara-deployment
labels:
app: fabric-suzuhara
namespace: sr229
spec:
replicas: 1
selector:
matchLabels:
app: fabric-suzuhara
template:
metadata:
labels:
app: fabric-suzuhara
spec:
containers:
- name: fabric-suzuhara
image: chinodesuuu/suzuhara-mc:master
resources:
requests:
cpu: 50m
memory: 100Mi
limits:
cpu: 1.5
memory: 2Gi
ports:
- containerPort: 25565
volumeMounts:
- name: world-pvc
mountPath: /world
- name: mc-config
mountPath: /minecraft/server.properties
subPath: server.properties
volumes:
- name: world-pvc
persistentVolumeClaim:
claimName: world-pvc
- name: mc-config
configMap:
name: fabric-suzuhara-config
---
apiVersion: v1
kind: Service
metadata:
name: fabric-suzuhara
namespace: sr229
labels:
app: fabric-suzuhara
annotations:
dev.okteto.com/auto-ingress: "true"
mc.suzuhara.moe/deployment: minecraft
mc.suzuhara.moe/stage: stable
spec:
selector:
app: fabric-suzuhara
type: ClusterIP
ports:
- protocol: TCP
port: 25565
targetPort: 25565
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: world-pvc
labels:
app: fabric-suzuhara
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
---
apiVersion: v1
kind: ConfigMap
metadata:
name: fabric-suzuhara-config
namespace: sr229
annotations:
mc.suzuhara.moe/deployment: minecraft
data:
server.properties: |
generator-settings=
use-native-transport=true
op-permission-level=4
allow-nether=true
level-name=suzuhara
enable-query=false
allow-flight=false
prevent-proxy-connections=false
server-port=25565
max-world-size=29999984
level-type=DEFAULT
enable-rcon=false
level-seed=konlulu
force-gamemode=false
server-ip=
network-compression-threshold=256
max-build-height=256
spawn-npcs=true
white-list=false
spawn-animals=true
hardcore=false
snooper-enabled=true
resource-pack-sha1=
online-mode=true
resource-pack=
pvp=false
difficulty=0
enable-command-block=false
gamemode=0
player-idle-timeout=0
max-players=20
spawn-monsters=true
generate-structures=true
view-distance=10
motd=Welcome to the Suzuhara Experimental Minecraft Server. Keep in mind QoS is not guranteed as this is an experiment. If you want to support us, consider being donator at https://ko-fi.com/capuccino
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment