Before migration back to a single node

This commit is contained in:
Nikolai Rodionov 2024-08-04 12:32:16 +02:00
parent 622e3ae65f
commit c14035e4a7
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
3 changed files with 65 additions and 52 deletions

View File

@ -8,6 +8,9 @@ repositories:
url: https://charts.longhorn.io url: https://charts.longhorn.io
- name: rook-release - name: rook-release
url: https://charts.rook.io/release url: https://charts.rook.io/release
- name: local-path-provisioner
url: git+https://github.com/rancher/local-path-provisioner@deploy/chart?ref=v0.0.28
releases: releases:
- name: rook-ceph - name: rook-ceph
chart: rook-release/rook-ceph chart: rook-release/rook-ceph
@ -36,3 +39,11 @@ releases:
- template: default-env-values - template: default-env-values
- template: default-env-secrets - template: default-env-secrets
- template: ext-secret - template: ext-secret
- name: local-path-provisioner
chart: local-path-provisioner/local-path-provisioner
installed: false
createNamespace: false
namespace: kube-system
inherit:
- template: default-env-values

View File

@ -27,21 +27,22 @@ traefik:
# -- Main values # -- Main values
# -------------------------------------------------- # --------------------------------------------------
image: image:
tag: java17-graalvm #tag: java21-graalvm
tag: java21
pullPolicy: Always pullPolicy: Always
resources: resources:
requests: requests:
memory: 3Gi memory: 3.5Gi
cpu: 1000m cpu: 1
limits: limits:
memory: 3Gi memory: 3.5Gi
cpu: 2
#lifecycle: #lifecycle:
# postStart: # postStart:
# - bash # - bash
# - -c # - -c
# - for i in {1..100}; do mc-health && break || sleep 20; done && rcon-cli setpassword 11223345
livenessProbe: livenessProbe:
command: command:
@ -61,16 +62,17 @@ readinessProbe:
timeoutSeconds: 20 timeoutSeconds: 20
minecraftServer: minecraftServer:
memory: 2G memory: 3072M
jvmXXOpts: "-Xms3072M -Xmx3072M --add-modules=jdk.incubator.vector -XX:+UseG1GC"
overrideServerProperties: true overrideServerProperties: true
eula: "TRUE" eula: "TRUE"
onlineMode: false onlineMode: false
difficulty: hard difficulty: hard
hardcore: true hardcore: false
version: 1.20.1 version: "1.20.1"
maxWorldSize: 90000 maxWorldSize: 90000
type: "FORGE" type: "PAPER"
gameMode: survival gameMode: creative
pvp: true pvp: true
rcon: rcon:
enabled: true enabled: true
@ -92,6 +94,7 @@ minecraftServer:
enabled: false enabled: false
persistence: persistence:
storageClass: ceph-filesystem storageClass: ceph-filesystem
#storageClass: local-path
dataDir: dataDir:
enabled: true enabled: true
Size: 10Gi Size: 10Gi
@ -117,41 +120,41 @@ mcbackup:
# --------------------------------------------- # ---------------------------------------------
# -- Install Plugins # -- Install Plugins
# --------------------------------------------- # ---------------------------------------------
initContainers: initContainers: {}
- name: 0-download-mods # - name: 0-download-mods
image: alpine/curl # image: alpine/curl
command: # command:
- curl # - curl
- -L # - -L
- "https://s3.badhouseplants.net/public-download/server_mods.tar" # - "https://s3.badhouseplants.net/public-download/server_mods.tar"
- -o # - -o
- /download/server_mods.tar # - /download/server_mods.tar
volumeMounts: # volumeMounts:
- name: download # - name: download
mountPath: /download # mountPath: /download
readOnly: false # readOnly: false
- name: 1-copy-plugins-to-minecraft # - name: 1-copy-plugins-to-minecraft
image: ubuntu # image: ubuntu
command: # command:
- sh # - sh
- -c # - -c
- cd /mods && tar -xvf /download/server_mods.tar || true # - cd /mods && tar -xvf /download/server_mods.tar || true
volumeMounts: # volumeMounts:
- name: plugins # - name: plugins
mountPath: /mods # mountPath: /mods
readOnly: false # readOnly: false
- name: download # - name: download
mountPath: /download # mountPath: /download
readOnly: false # readOnly: false
extraVolumes: extraVolumes: {}
- volumeMounts: # - volumeMounts:
- name: plugins # - name: plugins
mountPath: /data/mods # mountPath: /data/mods
readOnly: false # readOnly: false
volumes: # volumes:
- name: plugins # - name: plugins
emptyDir: # emptyDir:
sizeLimit: 500Mi # sizeLimit: 500Mi
- name: download # - name: download
emptyDir: # emptyDir:
sizeLimit: 500Mi # sizeLimit: 500Mi

View File

@ -76,15 +76,14 @@ cephClusterSpec:
memory: "512Mi" memory: "512Mi"
mon: mon:
limits: limits:
cpu: "2000m" memory: "512Mi"
memory: "1024Mi"
requests: requests:
cpu: "300m" cpu: "300m"
memory: "128Mi" memory: "512Mi"
osd: osd:
requests: requests:
cpu: "500m" cpu: "500m"
memory: "512Mi" memory: "1280Mi"
limits: limits:
memory: "1280Mi" memory: "1280Mi"
#limits: #limits: