Skip to content

Commit 5101a21

Browse files
committed
Regenerate headroom-controller chart
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
1 parent 0f13fb6 commit 5101a21

18 files changed

+484
-322
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ of_kind_portforward.pid
3434
jwt_key
3535
jwt_key.pub
3636
/*.pid
37-
*.txt
37+
/*.txt
3838
/.secrets/*
3939

4040
/pro.sh

chart/headroom-controller/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Headroom Controller Helm Chart
22

3-
A Helm chart for deploying the headroom-controller controller, which manages Kubernetes resource reservations through custom Headroom resources.
3+
Speed up scaling up and rolling out of workloads by pre-provisioning headroom in your Kubernetes cluster.
44

55
## Prerequisites
66

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
1. Create a default priority priorityClassName
2+
3+
kubectl apply -f - << EOF
4+
apiVersion: scheduling.k8s.io/v1
5+
kind: PriorityClass
6+
metadata:
7+
name: default
8+
value: 1000
9+
globalDefault: true
10+
description: "Default priority class for all pods"
11+
EOF
12+
13+
2. Create a low priority class for the headroom Custom Resources
14+
15+
kubectl apply -f - <<EOF
16+
apiVersion: scheduling.k8s.io/v1
17+
kind: PriorityClass
18+
metadata:
19+
name: headroom
20+
description: Low priority class for headroom pods
21+
globalDefault: false
22+
preemptionPolicy: Never
23+
value: -10
24+
EOF
25+
26+
3. Create a headroom resource:
27+
28+
kubectl apply -f - <<EOF
29+
apiVersion: openfaas.com/v1
30+
kind: Headroom
31+
metadata:
32+
name: example
33+
spec:
34+
replicas: 1
35+
requests:
36+
cpu: "100m"
37+
memory: "128Mi"
38+
priorityClassName: "headroom"
39+
EOF
40+
41+
4. Check the status:
42+
43+
kubectl get headrooms
44+
45+
5. Scale the headroom:
46+
47+
kubectl scale headroom example --replicas=2
48+

docs/cron-connector-0.6.13.tgz

0 Bytes
Binary file not shown.

docs/headroom-controller-0.1.0.tgz

14.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)