docker-minecraft-server/kustomize
2024-07-28 13:28:42 -05:00
..
base For backward compatibility, allow MODS to list plugins for those server types (#2200) 2023-06-11 11:00:39 -05:00
README.md docs: add service annotation patching to example kustomization (#3020) 2024-07-28 13:28:42 -05:00

This directory provides a base to use with kubectl kustomize.

Example overlay content

kustomization.yml

nameSuffix: "-forge"
commonLabels:
  server: forge
bases:
  - https://github.com/itzg/docker-minecraft-server.git/kustomize/base
configMapGenerator:
  - name: mc
    envs:
      - mc.env
patches:
  # Example of using a patch to set external service name for mc-router to pick up
  - path: set-external-servername.yml

mc.env

EULA=true
TYPE=FORGE

apiVersion: v1
kind: Service
metadata:
  name: mc
  annotations:
    mc-router.itzg.me/externalServerName: forge.example.com