From 9d89183d5f132c6626a7b0f2b25a41b0a27c4cde Mon Sep 17 00:00:00 2001 From: Ed Snible Date: Thu, 21 Jan 2021 09:34:54 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20example=20and=20use=20actual=20sample=20f?= =?UTF-8?q?iles=20so=20that=20we=20are=20ready=20for=20doc=20=E2=80=A6=20(?= =?UTF-8?q?#8806)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix example and use actual sample files so that we are ready for doc testing * Fix typo --- .../mesh/config-resource-ready/index.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/en/docs/ops/configuration/mesh/config-resource-ready/index.md b/content/en/docs/ops/configuration/mesh/config-resource-ready/index.md index c5ca73972f..22b7a54008 100644 --- a/content/en/docs/ops/configuration/mesh/config-resource-ready/index.md +++ b/content/en/docs/ops/configuration/mesh/config-resource-ready/index.md @@ -1,6 +1,6 @@ --- -title: Wait for Resource Status to Apply Configuration -description: Describes how to wait to apply mesh configuration until a resource reaches a given status or readiness. +title: Wait on Resource Status for Applied Configuration +description: Describes how to wait until a resource reaches a given status of readiness. weight: 15 owner: istio/wg-user-experience-maintainers test: no @@ -28,8 +28,7 @@ status, which Istio updates as it propagates configuration changes. ## Before you begin This feature is off by default. Enable the `status` field as part of Istio -installation using the following command. If you enable it after installation, -you must re-deploy the control plane. +installation using the following command. {{< text bash >}} $ istioctl install --set values.pilot.env.PILOT_ENABLE_STATUS=true --set values.global.istiod.enableAnalysis=true @@ -37,12 +36,14 @@ $ istioctl install --set values.pilot.env.PILOT_ENABLE_STATUS=true --set values. ## Wait for resource readiness -You can apply a change to a virtual service and then wait for completion, using +You can apply a change and then wait for completion. For example, to wait for a virtual +service, use the following commands: {{< text bash >}} -$ kubectl apply -f virtual_service_name.yaml -$ kubectl wait --for=condition=Reconciled virtual_service/name +$ kubectl apply -f @samples/httpbin/httpbin.yaml@ +$ kubectl apply -f @samples/httpbin/httpbin-gateway.yaml@ +$ kubectl wait --for=condition=Reconciled virtualservice/httpbin {{< /text >}} This blocking command does not release until the virtual service has been