Skip to content

Commit

Permalink
fix jvm
Browse files Browse the repository at this point in the history
  • Loading branch information
outductor committed Dec 24, 2023
1 parent 19e5f82 commit 6304a2c
Showing 1 changed file with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ spec:
values:
- seichi-onp-k8s-wk-1 # CPUの多いwk-1だけにスケジュールする
initContainers:
- name: jmx-exporter-downloader
image: busybox:1.36.1
env:
- name: JMX_EXPORTER_URL
value: "https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.20.0/jmx_prometheus_javaagent-0.20.0.jar"
volumeMounts:
- name: jmx-exporter-download-volume
mountPath: /root/jmx-exporter-download
command:
- "sh"
- "-c"
- 'wget -O /root/jmx-exporter-download/jmx-exporter-javaagent.jar "${JMX_EXPORTER_URL}"'
- name: mod-downloader
image: ghcr.io/giganticminecraft/mod-downloader:sha-c0f7980
env:
Expand Down Expand Up @@ -102,7 +114,7 @@ spec:
https://github.com/GiganticMinecraft/StreamClock/releases/download/sha-dd1905c/StreamClock-1.0-SNAPSHOT.jdk17.jar,
https://github.com/GiganticMinecraft/ByeByeWither/releases/download/sha-e2a0a69/ByeByeWither-1.0.0.jar,
https://github.com/sladkoff/minecraft-prometheus-exporter/releases/download/v2.5.0/minecraft-prometheus-exporter-2.5.0.jar,
https://repo1.maven.org/maven2/io/prometheus/jmx/jmx_prometheus_javaagent/0.20.0/jmx_prometheus_javaagent-0.20.0.jar,
- name: JVM_OPTS
value: >-
-javaagent:/jmx-exporter/jmx-exporter-javaagent.jar=18321:/jmx-exporter/jmx-exporter-config.yaml
Expand Down Expand Up @@ -179,6 +191,7 @@ spec:
lp group default permission set clicktpa.tpaccept true
lp group default permission set clicktpa.tpahere true
lp group default permission set clicktpa.tptoggle true
image: ghcr.io/giganticminecraft/seichi_minecraft_server_debug_base_1_18_2:sha-1267b49
name: minecraft
ports:
Expand Down Expand Up @@ -290,6 +303,9 @@ spec:
subPath: config.yml

# JMX exporter 周りのファイルが入ったボリューム達のマウント設定
- name: jmx-exporter-download-volume
mountPath: /jmx-exporter/jmx-exporter-javaagent.jar
subPath: jmx-exporter-javaagent.jar
- name: common-jmx-exporter-config
mountPath: /jmx-exporter/jmx-exporter-config.yaml
subPath: jmx-exporter-config.yaml
Expand Down Expand Up @@ -322,7 +338,9 @@ spec:
configMap:
name: multiverse-portals-config

# JMX exporterのconfig volume
# JMX exporterをinitContainerでダウンロードしてMinecraftに受け渡すためのvolume
- name: jmx-exporter-download-volume
emptyDir: {}
- name: common-jmx-exporter-config
configMap:
name: common-jmx-exporter-config
Expand All @@ -331,6 +349,6 @@ spec:
- name: mod-downloader-volume
emptyDir: {}

# # S1から取ってきたワールドデータをぶちこむvolume
# # S1から取ってきたワールドデータをぶちこむボリューム
# - name: world-download-volume
# emptyDir: {}

0 comments on commit 6304a2c

Please sign in to comment.