website icon indicating copy to clipboard operation
website copied to clipboard

Improvement for k8s.io/docs/tutorials/kubernetes-basics/scale/scale-intro/

Open bigdbythesea opened this issue 1 year ago • 5 comments

The text states: "We hit a different Pod with every request. This demonstrates that the load-balancing is working."

Everything worked fine as followed by the tutorial but how do we know or actually see that a different Pod was invoked for the multiple curl requests?
Nothing is demonstrated or confirms that multiple Pods were involved. Is there a log trace somewhere or a command execution history logged where we can actually see the "demonstration" that multiple Pods were involved in the scaling or is it just blind trust?

bigdbythesea avatar Aug 02 '24 15:08 bigdbythesea

Tutorial page link with issue: https://kubernetes.io/docs/tutorials/kubernetes-basics/scale/scale-intro/

/language en /sig docs

steve-hardman avatar Aug 02 '24 16:08 steve-hardman

I think it would be good to add sample expected output from the multiple curl requests along with current text in the page to show load-balancing is working.

steve-hardman avatar Aug 02 '24 16:08 steve-hardman

I expect that the sample output, if following the tutorials, is similar to:

Hello Kubernetes bootcamp! | Running on: kubernetes-bootcamp-644c5687f4-wp67j | v=1
Hello Kubernetes bootcamp! | Running on: kubernetes-bootcamp-644c5687f4-hs9dj | v=1
Hello Kubernetes bootcamp! | Running on: kubernetes-bootcamp-644c5687f4-4hjvf | v=1
Hello Kubernetes bootcamp! | Running on: kubernetes-bootcamp-644c5687f4-wp67j | v=1
Hello Kubernetes bootcamp! | Running on: kubernetes-bootcamp-644c5687f4-4hjvf | v=1

We hit a different Pod with every request

is misleading. The choice of backing pod is pseudorandom and could repeat (see above example) rather than being different for each and every request.

sftim avatar Aug 03 '24 11:08 sftim

/triage accepted /priority backlog

See https://github.com/kubernetes/website/issues/47345#issuecomment-2266684730

sftim avatar Aug 20 '24 17:08 sftim

/assign

ayushpatil2122 avatar Sep 19 '24 16:09 ayushpatil2122