Skip to content

Commit

Permalink
Update documentation - autoscaling requirements (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
csabca83 authored Aug 6, 2024
1 parent 5d7063f commit 33d0c5c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit 33d0c5c

Please sign in to comment.