Skip to content

Commit

Permalink
feat: debug-s1のstateful-set.yamlのinitContainersにmod-downloaderを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
rito528 committed Nov 16, 2023
1 parent 51a9375 commit e7150b2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,27 @@ spec:
- "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-8326d06
env:
- name: MINIO_ENDPOINT
value: seichi-private-plugin-blackhole-minio-console.minio:9001
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: mcserver--common--config-secrets
key: MINIO_DEBUG_ACCESS_KEY
- name: MINIO_ACCESS_KEY
valueFrom:
secretKeyRef:
name: mcserver--common--config-secrets
key: MINIO_DEBUG_ACCESS_SECRET
- name: BUCKET_NAME
value: seichi-plugins
- name: BUCKET_PREFIX_NAME
value: deb-1-18-2
- name: DOWNLOAD_TARGET_DIR_PATH
value: /plugins

containers:
- resources:
Expand Down
2 changes: 2 additions & 0 deletions terraform/onp_cluster_minecraft_secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ resource "kubernetes_secret" "onp_minecraft_debug_secrets" {

data = {
DISCORDSRV_TOKEN = var.minecraft__discordsrv_bot_token
MINIO_DEBUG_ACCESS_KEY = var.minio_debug_access_key
MINIO_DEBUG_ACCESS_SECRET = var.minio_debug_access_secret
}

type = "Opaque"
Expand Down

0 comments on commit e7150b2

Please sign in to comment.