From c119be8977826a942280c0662fc12bad50312060 Mon Sep 17 00:00:00 2001 From: Yan Han Pang <539739+yanhan@users.noreply.github.com> Date: Mon, 20 Mar 2023 17:43:31 +0800 Subject: [PATCH 1/2] [DOCS] learning/istio: add command to wait for rollout to complete Signed-off-by: Yan Han Pang <539739+yanhan@users.noreply.github.com> --- learning/istio/README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/learning/istio/README.md b/learning/istio/README.md index b8b22e6..eb4b4ff 100644 --- a/learning/istio/README.md +++ b/learning/istio/README.md @@ -34,7 +34,17 @@ kubectl label ns default istio-injection=enabled kaf samples/bookinfo/platform/kube/bookinfo.yaml ``` -Wait for the pods in default namespace to be ready. Then verify: +Wait for the pods in default namespace to be ready: +``` +k rollout status deploy/details-v1 && \ +k rollout status deploy/ratings-v1 && \ +k rollout status deploy/reviews-v1 && \ +k rollout status deploy/reviews-v2 && \ +k rollout status deploy/reviews-v3 && \ +k rollout status deploy/productpage-v1 +``` + +Then verify: ``` k exec "$(kg po -l app=ratings -o jsonpath='{.items[0].metadata.name}')" -c ratings -- curl -sS productpage:9080/productpage | grep -o "