--- # -------------------------------------------------- # -- Extensions values # -------------------------------------------------- service-account: enabled: true resources: - name: minecraft-exporter label: app: minecraft-minecraft-metrics endpoints: port: metrics # ------------------------------------------ # -- Istio extenstion. Just because I'm # -- not using ingress nginx # ------------------------------------------ istio: enabled: true istio: - name: minecraft-tcp gateway: badhouseplants-minecraft kind: tcp port_match: 25565 hostname: "*" service: minecraft-minecraft port: 25565 # -------------------------------------------------- # -- Main values # -------------------------------------------------- image: tag: java17-graalvm-ce pullPolicy: Always resources: requests: memory: 512Mi cpu: 50m limits: memory: 3Gi lifecycle: postStart: - bash - -c - for i in {1..100}; do mc-health && break || sleep 20; done && mc-send-to-console setpassword 11223345 readinessProbe: command: - mc-health periodSeconds: 20 failureThreshold: 50 timeoutSeconds: 10 livenessProbe: timeoutSeconds: 10 minecraftServer: eula: "TRUE" onlineMode: false difficulty: hard hardcore: true version: 1.20.1 maxWorldSize: 90000 type: "PAPER" paperDownloadUrl: https://api.papermc.io/v2/projects/paper/versions/1.20.1/builds/100/downloads/paper-1.20.1-100.jar gameMode: survival pvp: true memory: 2512M extraPorts: - name: metrics containerPort: 9225 protocol: TCP service: enabled: true embedded: false labels: exporter: minecraft type: ClusterIP port: 9925 ingress: enabled: false persistence: dataDir: enabled: true Size: 15Gi initContainers: - name: install-prometheus-exporter image: alpine/curl command: - curl - -L - "https://github.com/sladkoff/minecraft-prometheus-exporter/releases/download/v2.5.0/minecraft-prometheus-exporter-2.5.0.jar" - -o - /data/plugins/prometheus-exporter.jar volumeMounts: - name: plugins mountPath: /data/plugins readOnly: false - name: install-password-plugin image: alpine/curl command: - curl - -L - "https://github.com/timbru31/PasswordProtect/releases/download/PasswordProtect-3.1.0/PasswordProtect.jar" - -o - /data/plugins/PasswordProtect.jar volumeMounts: - name: plugins mountPath: /data/plugins readOnly: false extraVolumes: - volumeMounts: - name: plugins mountPath: /data/plugins readOnly: false volumes: - name: plugins emptyDir: sizeLimit: 500Mi