From a941b313c042479d6a34b31eecdb918d008f3f5a Mon Sep 17 00:00:00 2001 From: Bridget Kromhout Date: Sun, 14 Jul 2019 17:13:52 -0700 Subject: [PATCH] Needs memory; not using httping --- slides/k8s/horizontal-pod-autoscaler.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/slides/k8s/horizontal-pod-autoscaler.md b/slides/k8s/horizontal-pod-autoscaler.md index 069c479d..519b5ef9 100644 --- a/slides/k8s/horizontal-pod-autoscaler.md +++ b/slides/k8s/horizontal-pod-autoscaler.md @@ -99,18 +99,13 @@ ## Monitor what's going on -- Let's start a bunch of commands to watch what is happening +- Let's use some commands to watch what is happening .exercise[ - Monitor pod CPU usage: ```bash - watch kubectl top pods - ``` - -- Monitor service latency: - ```bash - httping http://`ClusterIP`/ + kubectl top pods ``` - Monitor cluster events: @@ -198,6 +193,7 @@ This can also be set with `--cpu-percent=`. resources: requests: cpu: "1" + memory: 64Mi ``` ] @@ -208,7 +204,7 @@ This can also be set with `--cpu-percent=`. - After saving and quitting, a rolling update happens - (if `ab` or `httping` exits, make sure to restart it) + (if `ab` exits, make sure to restart it) - It will take a minute or two for the HPA to kick in: