Skip to content

Commit

Permalink
docs: add service annotation patching to example kustomization (#3020)
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg authored Jul 28, 2024
1 parent 46ee233 commit f4634c3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-multiarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
- "docs/**"
- "examples/**"
- "notes/**"
- "kustomize/**"

jobs:
build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/verify-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- "docs/**"
- "examples/**"
- "notes/**"
- "kustomize/**"
- "docker-compose*.yml"
- "mkdocs.yml"

Expand Down
14 changes: 14 additions & 0 deletions kustomize/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,24 @@ 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
```

###

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

0 comments on commit f4634c3

Please sign in to comment.