mirror of
https://github.com/itzg/docker-minecraft-server
synced 2024-11-13 23:57:08 +00:00
docs: add service annotation patching to example kustomization (#3020)
This commit is contained in:
parent
46ee2331bf
commit
f4634c3fd9
3 changed files with 16 additions and 0 deletions
1
.github/workflows/build-multiarch.yml
vendored
1
.github/workflows/build-multiarch.yml
vendored
|
@ -11,6 +11,7 @@ on:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
- "examples/**"
|
- "examples/**"
|
||||||
- "notes/**"
|
- "notes/**"
|
||||||
|
- "kustomize/**"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
1
.github/workflows/verify-pr.yml
vendored
1
.github/workflows/verify-pr.yml
vendored
|
@ -8,6 +8,7 @@ on:
|
||||||
- "docs/**"
|
- "docs/**"
|
||||||
- "examples/**"
|
- "examples/**"
|
||||||
- "notes/**"
|
- "notes/**"
|
||||||
|
- "kustomize/**"
|
||||||
- "docker-compose*.yml"
|
- "docker-compose*.yml"
|
||||||
- "mkdocs.yml"
|
- "mkdocs.yml"
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,9 @@ configMapGenerator:
|
||||||
- name: mc
|
- name: mc
|
||||||
envs:
|
envs:
|
||||||
- mc.env
|
- 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
|
### mc.env
|
||||||
|
@ -20,3 +23,14 @@ configMapGenerator:
|
||||||
EULA=true
|
EULA=true
|
||||||
TYPE=FORGE
|
TYPE=FORGE
|
||||||
```
|
```
|
||||||
|
|
||||||
|
###
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mc
|
||||||
|
annotations:
|
||||||
|
mc-router.itzg.me/externalServerName: forge.example.com
|
||||||
|
```
|
Loading…
Reference in a new issue