feat: opt-out of auto-scaling per server (k8s) (#454)

This commit is contained in:
Moritz Rinow
2025-09-10 14:23:18 +02:00
committed by GitHub
parent 534afd4a6c
commit d0fcb93aa6
4 changed files with 46 additions and 7 deletions
+16
View File
@@ -366,6 +366,22 @@ spec:
- name: mc
```
You can also opt-out of auto-scaling per server by setting the following annotations on the `Service` object:
- `mc-router.itzg.me/autoScaleUp=false`
- `mc-router.itzg.me/autoScaleDown=false`
Example server with auto-scaling disabled explicitly:
```yaml
apiVersion: v1
kind: Service
metadata:
name: mc-forge
annotations:
"mc-router.itzg.me/externalServerName": "external.host.name"
"mc-router.itzg.me/autoScaleUp": "false"
"mc-router.itzg.me/autoScaleDown": "false"
```
## REST API
* `GET /routes` (with `Accept: application/json`)