Skip to content

Commit 8501e6f

Browse files
authored
Describe resource request in ctf playbook (#323)
1 parent 43f168b commit 8501e6f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

docs/ctf-playbook.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ kctf cluster resize --min-nodes 4 --max-nodes 16 --num-nodes 5 --machine-type n2
2121
| :warning: the maximum number of nodes may be limited by the [cloud project quotas](https://cloud.google.com/compute/quotas) |
2222
| --- |
2323

24-
After enabling scaling for the number of nodes, we also want to enable scaling for the challenges. You can do this by adding a horizontalAutoScaler spec to the `challenge.yaml`.
24+
After enabling scaling for the number of nodes, we also want to enable scaling for the challenges. You can do this by adding a horizontalAutoScaler spec and a resource request to the `challenge.yaml`.
2525
For available fields, see:
2626

2727
```sh
@@ -41,6 +41,15 @@ spec:
4141
maxReplicas: 8
4242
minReplicas: 2
4343
targetCPUUtilizationPercentage: 60
44+
podTemplate:
45+
template:
46+
spec:
47+
containers:
48+
- name: 'challenge'
49+
resources:
50+
requests:
51+
memory: "1000Mi"
52+
cpu: "500m"
4453
```
4554
4655
Start the challenge:

0 commit comments

Comments
 (0)