From 8576da2d9e80b0a5d472a5cefdcbd48fde5dc7a8 Mon Sep 17 00:00:00 2001 From: Dan Roscigno Date: Tue, 5 May 2020 23:31:46 -0400 Subject: [PATCH 1/2] Update guestbook-logs-metrics-with-elk.md Fix path for `kube-state-metrics` --- .../stateless-application/guestbook-logs-metrics-with-elk.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md b/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md index 94008289ee..948e6a2e1d 100644 --- a/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md +++ b/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md @@ -67,7 +67,7 @@ kubectl get pods --namespace=kube-system | grep kube-state ```shell git clone https://github.com/kubernetes/kube-state-metrics.git kube-state-metrics -kubectl create -f examples/standard +kubectl apply -f kube-state-metrics/examples/standard kubectl get pods --namespace=kube-system | grep kube-state-metrics ``` Verify that kube-state-metrics is running and ready @@ -78,7 +78,7 @@ kubectl get pods -n kube-system -l app.kubernetes.io/name=kube-state-metrics Output: ```shell NAME READY STATUS RESTARTS AGE -kube-state-metrics-89d656bf8-vdthm 2/2 Running 0 21s +kube-state-metrics-89d656bf8-vdthm 1/1 Running 0 21s ``` ## Clone the Elastic examples GitHub repo ```shell From 00ad32d54248fec90d4417355bf1891f6fdd26c6 Mon Sep 17 00:00:00 2001 From: DanRoscigno Date: Tue, 5 May 2020 23:57:03 -0400 Subject: [PATCH 2/2] correct scaling instructions --- .../guestbook-logs-metrics-with-elk.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md b/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md index 948e6a2e1d..ced3ba7ebc 100644 --- a/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md +++ b/content/en/docs/tutorials/stateless-application/guestbook-logs-metrics-with-elk.md @@ -357,10 +357,14 @@ The output: ```shell deployment.extensions/frontend scaled ``` +Scale the frontend back up to three pods: +```shell +kubectl scale --replicas=3 deployment/frontend +``` ## View the changes in Kibana See the screenshot, add the indicated filters and then add the columns to the view. You can see the ScalingReplicaSet entry that is marked, following from there to the top of the list of events shows the image being pulled, the volumes mounted, the pod starting, etc. -![Kibana Discover](https://raw.githubusercontent.com/elastic/examples/master/beats-k8s-send-anywhere/scaling-discover.png) +![Kibana Discover](https://raw.githubusercontent.com/elastic/examples/master/beats-k8s-send-anywhere/scaling-up.png) {{% /capture %}}