Skip to content

Commit c9c3b14

Browse files
committed
chore(docs): Update k8s docs for gcloud SSD quota
Signed-off-by: SeeuSim <[email protected]>
1 parent 1428490 commit c9c3b14

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

k8s/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
kubectl -n peerprep get all
7474
```
7575
76-
You should be able to see the Horizontal Pod AutoScaler scaling up the services in respond to
76+
You should be able to see the Horizontal Pod AutoScaler scaling up the services in respond to
7777
resource demand.
7878
7979
3. Run <kbd>Ctrl</kbd>+<kbd>C</kbd> to interrupt and
@@ -185,9 +185,25 @@
185185
--num-nodes 1 \
186186
--min-nodes 1 \
187187
--max-nodes 25 \
188+
--disk-size 20 \
188189
--region=asia-southeast1-c
189190
```
190191
192+
- We configure the node pool using the above command to create a cluster with
193+
a node pool having the following characteristics:
194+
- Preemptible: To schedule cheaper pods that can be claimed back by GCloud to save
195+
costs
196+
- Machine Type: `e2-small`
197+
- This provides a good balance between performance and cost.
198+
- Autoscaling: This allows the node pool to resize automatically, allowing us
199+
to scale our deployments without manually managing nodes
200+
- Num Nodes (Initial Number of Nodes): 1. We let the cluster operate first, and scale
201+
up if needed.
202+
- Min Nodes: 1. This ensures our cluster is always up.
203+
- Max Nodes: 25. This prevents our cluster from scaling too large.
204+
- Disk Size: 20GB. This prevents our cluster from requesting more than the Google Cloud
205+
quota of 500GB SSD, as the default is 100GB per node.
206+
191207
5. Once the cluster has been created, run the commands below to configure `kubectl` and connect to the cluster:
192208
193209
```sh

0 commit comments

Comments
 (0)