Skip to content

Commit c227d57

Browse files
committed
Add example for Slicer / Autoscaler
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 90fd447 commit c227d57

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

_posts/2025-07-22-headroom-controller.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,32 @@ spec:
250250
effect: "NoSchedule"
251251
```
252252
253+
For a self-hosted [HA K3s cluster with SlicerVM.com](https://docs.slicervm.com/examples/ha-k3s/) running with our modified Cluster Autoscaler, you could try something like this:
254+
255+
```bash
256+
kubectl taint node k3s-cp-1 cp:NoSchedule
257+
kubectl taint node k3s-cp-2 cp:NoSchedule
258+
kubectl taint node k3s-cp-3 cp:NoSchedule
259+
```
260+
261+
Followed by adding:
262+
263+
```yaml
264+
spec:
265+
priorityClassName: headroom
266+
replicas: 2
267+
requests:
268+
cpu: 500m
269+
memory: 512Mi
270+
tolerations:
271+
- effect: NoSchedule
272+
key: cp
273+
operator: Equal
274+
value: "1"
275+
```
276+
277+
In that case, if you have no agents, the autoscaler will provision a new node to host the two new replicas of the headroom Pods.
278+
253279
## Getting started with the headroom controller
254280
255281
You can get started right away, even if you're not an OpenFaaS customer. OpenFaaS is not a pre-requisite, but we've put it under the brand to signal to customers that this is something we are supporting, and think is an important add-on for any cluster autoscaler.

0 commit comments

Comments
 (0)