Update documentation - autoscaling requirements (#317)

This commit is contained in:
csabca83 2024-08-06 19:35:57 +02:00 committed by GitHub
parent 5d7063f73e
commit 33d0c5c56a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -244,6 +244,28 @@ rules:
verbs: ["watch","list","get","update"]
```
Make sure to set `StatefulSet.metadata.name` and `StatefulSet.spec.serviceName` to the same value;
otherwise, autoscaling will not trigger:
```yaml
apiVersion: v1
kind: Service
metadata:
name: mc-forge
spec:
type: ClusterIP
annotations:
"mc-router.itzg.me/defaultServer": "true"
"mc-router.itzg.me/externalServerName": "external.host.name"
---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: mc-forge
spec:
serviceName: mc-forge
```
## REST API
* `GET /routes` (with `Accept: application/json`)