gateway-api: change wait ready to wait programmed (#12937)

This commit is contained in:
Frank Budinsky 2023-03-24 15:12:01 -04:00 committed by GitHub
parent be01753e1c
commit 0d65b3888d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 27 additions and 27 deletions

View File

@ -148,7 +148,7 @@ allowing routes for multiple subdomains to be attached.
After applying the Gateway resource, we need to wait for it to be ready before retrieving its external address:
{{< text bash >}}
$ kubectl wait -n sample-ingress --for=condition=ready gateway sample-gateway
$ kubectl wait -n sample-ingress --for=condition=programmed gateway sample-gateway
$ export INGRESS_HOST=$(kubectl get -n sample-ingress gateway sample-gateway -o jsonpath='{.status.addresses[*].value}')
{{< /text >}}

View File

@ -193,7 +193,7 @@ Kubernetes cluster, e.g., from a browser. A gateway is used for this purpose.
run the following command to wait for the gateway to be ready:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw bookinfo-gateway
$ kubectl wait --for=condition=programmed gtw bookinfo-gateway
{{< /text >}}
Get the gateway address and port from the bookinfo gateway resource:

View File

@ -96,7 +96,7 @@ httproute.gateway.networking.k8s.io/bookinfo created
ENDSNIP
snip_determine_the_ingress_ip_and_port_4() {
kubectl wait --for=condition=ready gtw bookinfo-gateway
kubectl wait --for=condition=programmed gtw bookinfo-gateway
}
snip_determine_the_ingress_ip_and_port_5() {

View File

@ -132,7 +132,7 @@ $ kubectl apply -n httpbin -f @samples/httpbin/httpbin-gateway.yaml@
{{< text syntax=bash snip_id=deploy_httpbin_k8s_gateway >}}
$ kubectl apply -n httpbin -f @samples/httpbin/gateway-api/httpbin-gateway.yaml@
$ kubectl wait --for=condition=ready gtw -n httpbin httpbin-gateway
$ kubectl wait --for=condition=programmed gtw -n httpbin httpbin-gateway
{{< /text >}}
{{< /tab >}}

View File

@ -60,7 +60,7 @@ kubectl apply -n httpbin -f samples/httpbin/httpbin-gateway.yaml
snip_deploy_httpbin_k8s_gateway() {
kubectl apply -n httpbin -f samples/httpbin/gateway-api/httpbin-gateway.yaml
kubectl wait --for=condition=ready gtw -n httpbin httpbin-gateway
kubectl wait --for=condition=programmed gtw -n httpbin httpbin-gateway
}
snip_export_gateway_url() {

View File

@ -206,7 +206,7 @@ route at the edge of your mesh.
run the following command to wait for the gateway to be ready:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw bookinfo-gateway
$ kubectl wait --for=condition=programmed gtw bookinfo-gateway
{{< /text >}}
1. Ensure that there are no issues with the configuration:

View File

@ -122,7 +122,7 @@ httproute.gateway.networking.k8s.io/bookinfo created
ENDSNIP
snip_open_the_application_to_outside_traffic_ip_2() {
kubectl wait --for=condition=ready gtw bookinfo-gateway
kubectl wait --for=condition=programmed gtw bookinfo-gateway
}
snip_open_the_application_to_outside_traffic_ip_3() {

View File

@ -682,7 +682,7 @@ $ export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
{{< tab name="Gateway API" category-value="gateway-api" >}}
{{< text bash >}}
$ kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" wait --for=condition=ready gtw helloworld-gateway
$ kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" wait --for=condition=programmed gtw helloworld-gateway
$ export INGRESS_HOST=$(kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" get gtw helloworld-gateway -o jsonpath='{.status.addresses[*].value}')
$ export GATEWAY_URL=$INGRESS_HOST:80
{{< /text >}}

View File

@ -429,7 +429,7 @@ export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
}
snip_configure_and_test_an_ingress_gateway_6() {
kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" wait --for=condition=ready gtw helloworld-gateway
kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" wait --for=condition=programmed gtw helloworld-gateway
export INGRESS_HOST=$(kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" get gtw helloworld-gateway -o jsonpath='{.status.addresses[*].value}')
export GATEWAY_URL=$INGRESS_HOST:80
}

View File

@ -57,7 +57,7 @@ Create the gateway:
{{< text bash >}}
$ kubectl apply -f @samples/httpbin/gateway-api/httpbin-gateway.yaml@ -n foo
$ kubectl wait --for=condition=ready gtw -n foo httpbin-gateway
$ kubectl wait --for=condition=programmed gtw -n foo httpbin-gateway
{{< /text >}}
Turn on RBAC debugging in Envoy for the ingress gateway:

View File

@ -37,7 +37,7 @@ kubectl get pods -n istio-system -o name -l istio=ingressgateway | sed 's|pod/||
snip_before_you_begin_4() {
kubectl apply -f samples/httpbin/gateway-api/httpbin-gateway.yaml -n foo
kubectl wait --for=condition=ready gtw -n foo httpbin-gateway
kubectl wait --for=condition=programmed gtw -n foo httpbin-gateway
}
snip_before_you_begin_5() {

View File

@ -113,7 +113,7 @@ In this example, we will deploy a simple application and expose it externally us
1. Set the Ingress Host environment variable:
{{< text bash >}}
$ kubectl wait -n istio-ingress --for=condition=ready gateways.gateway.networking.k8s.io gateway
$ kubectl wait -n istio-ingress --for=condition=programmed gateways.gateway.networking.k8s.io gateway
$ export INGRESS_HOST=$(kubectl get gateways.gateway.networking.k8s.io gateway -n istio-ingress -ojsonpath='{.status.addresses[*].value}')
{{< /text >}}

View File

@ -74,7 +74,7 @@ EOF
}
snip_configuring_a_gateway_3() {
kubectl wait -n istio-ingress --for=condition=ready gateways.gateway.networking.k8s.io gateway
kubectl wait -n istio-ingress --for=condition=programmed gateways.gateway.networking.k8s.io gateway
export INGRESS_HOST=$(kubectl get gateways.gateway.networking.k8s.io gateway -n istio-ingress -ojsonpath='{.status.addresses[*].value}')
}

View File

@ -163,7 +163,7 @@ Because creating a Kubernetes `Gateway` resource will also
run the following command to wait for the gateway to be ready:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw httpbin-gateway
$ kubectl wait --for=condition=programmed gtw httpbin-gateway
{{< /text >}}
Configure routes for traffic entering via the `Gateway`:

View File

@ -95,7 +95,7 @@ EOF
}
snip_configuring_ingress_using_a_gateway_4() {
kubectl wait --for=condition=ready gtw httpbin-gateway
kubectl wait --for=condition=programmed gtw httpbin-gateway
}
snip_configuring_ingress_using_a_gateway_5() {

View File

@ -307,7 +307,7 @@ to set the `SECURE_INGRESS_PORT` and `INGRESS_HOST` environment variables.
Use the following commands to set the `SECURE_INGRESS_PORT` and `INGRESS_HOST` environment variables:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw mygateway
$ kubectl wait --for=condition=programmed gtw mygateway
$ export INGRESS_HOST=$(kubectl get gtw mygateway -o jsonpath='{.status.addresses[*].value}')
$ export SECURE_INGRESS_PORT=$(kubectl get gtw mygateway -o jsonpath='{.spec.listeners[?(@.name=="https")].port}')
{{< /text >}}

View File

@ -235,7 +235,7 @@ EOF
}
snip_configure_an_ingress_gateway_5() {
kubectl wait --for=condition=ready gtw mygateway
kubectl wait --for=condition=programmed gtw mygateway
export INGRESS_HOST=$(kubectl get gtw mygateway -o jsonpath='{.status.addresses[*].value}')
export SECURE_INGRESS_PORT=$(kubectl get gtw mygateway -o jsonpath='{.spec.listeners[?(@.name=="https")].port}')
}

View File

@ -234,7 +234,7 @@ EOF
Finally, get the gateway address and port from the `Gateway` resource:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw mygateway -n istio-system
$ kubectl wait --for=condition=programmed gtw mygateway -n istio-system
$ export INGRESS_HOST=$(kubectl get gtw mygateway -n istio-system -o jsonpath='{.status.addresses[*].value}')
$ export SECURE_INGRESS_PORT=$(kubectl get gtw mygateway -n istio-system -o jsonpath='{.spec.listeners[?(@.name=="https")].port}')
{{< /text >}}

View File

@ -182,7 +182,7 @@ EOF
}
snip_configure_a_tls_ingress_gateway_for_a_single_host_6() {
kubectl wait --for=condition=ready gtw mygateway -n istio-system
kubectl wait --for=condition=programmed gtw mygateway -n istio-system
export INGRESS_HOST=$(kubectl get gtw mygateway -n istio-system -o jsonpath='{.status.addresses[*].value}')
export SECURE_INGRESS_PORT=$(kubectl get gtw mygateway -n istio-system -o jsonpath='{.spec.listeners[?(@.name=="https")].port}')
}

View File

@ -90,7 +90,7 @@ to set the `TCP_INGRESS_PORT` and `INGRESS_HOST` environment variables.
Use the following commands to set the `SECURE_INGRESS_PORT` and `INGRESS_HOST` environment variables:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting
$ kubectl wait --for=condition=programmed gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting
$ export INGRESS_HOST=$(kubectl get gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting -o jsonpath='{.status.addresses[*].value}')
$ export TCP_INGRESS_PORT=$(kubectl get gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting -o jsonpath='{.spec.listeners[?(@.name=="tcp-31400")].port}')
{{< /text >}}

View File

@ -43,7 +43,7 @@ kubectl apply -f samples/tcp-echo/gateway-api/tcp-echo-all-v1.yaml -n istio-io-t
}
snip_apply_weightbased_tcp_routing_3() {
kubectl wait --for=condition=ready gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting
kubectl wait --for=condition=programmed gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting
export INGRESS_HOST=$(kubectl get gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting -o jsonpath='{.status.addresses[*].value}')
export TCP_INGRESS_PORT=$(kubectl get gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting -o jsonpath='{.spec.listeners[?(@.name=="tcp-31400")].port}')
}

View File

@ -170,7 +170,7 @@ Bookinfo 应用中的几个微服务是由不同的语言编写的。
[部署关联的代理服务](/zh/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment),所以运行以下命令等待网关就绪:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw bookinfo-gateway
$ kubectl wait --for=condition=programmed gtw bookinfo-gateway
{{< /text >}}
从 bookinfo 网关资源处获取网关地址和端口:

View File

@ -643,7 +643,7 @@ $ export GATEWAY_URL=$INGRESS_HOST:$INGRESS_PORT
{{< tab name="Gateway API" category-value="gateway-api" >}}
{{< text bash >}}
$ kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" wait --for=condition=ready gtw helloworld-gateway
$ kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" wait --for=condition=programmed gtw helloworld-gateway
$ export INGRESS_HOST=$(kubectl -n sample --context="${CTX_REMOTE_CLUSTER}" get gtw helloworld-gateway -o jsonpath='{.status.addresses[*].value}')
$ export GATEWAY_URL=$INGRESS_HOST:80
{{< /text >}}

View File

@ -113,7 +113,7 @@ Gateway API 与 Istio API (如 Gateway 和 VirtualService有很多相似之
1. 设置主机 Ingress 环境变量:
{{< text bash >}}
$ kubectl wait -n istio-ingress --for=condition=ready gateways.gateway.networking.k8s.io gateway
$ kubectl wait -n istio-ingress --for=condition=programmed gateways.gateway.networking.k8s.io gateway
$ export INGRESS_HOST=$(kubectl get gateways.gateway.networking.k8s.io gateway -n istio-ingress -ojsonpath='{.status.addresses[*].value}')
{{< /text >}}

View File

@ -139,7 +139,7 @@ EOF
因为创建 Kubernetes `Gateway` 资源也将[部署关联的代理服务](/zh/docs/tasks/traffic-management/ingress/gateway-api/#automated-deployment),运行以下命令等待 Gateway 就绪:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw httpbin-gateway
$ kubectl wait --for=condition=programmed gtw httpbin-gateway
{{< /text >}}
通过 `Gateway` 为进入的流量配置路由:

View File

@ -224,7 +224,7 @@ EOF
最后,从 `Gateway` 资源中获取网关地址和端口:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw mygateway -n istio-system
$ kubectl wait --for=condition=programmed gtw mygateway -n istio-system
$ export INGRESS_HOST=$(kubectl get gtw mygateway -n istio-system -o jsonpath='{.status.addresses[*].value}')
$ export SECURE_INGRESS_PORT=$(kubectl get gtw mygateway -n istio-system -o jsonpath='{.spec.listeners[?(@.name=="https")].port}')
{{< /text >}}

View File

@ -86,7 +86,7 @@ $ kubectl apply -f @samples/tcp-echo/gateway-api/tcp-echo-all-v1.yaml@ -n istio-
使用以下命令设置 `SECURE_INGRESS_PORT``INGRESS_HOST` 环境变量:
{{< text bash >}}
$ kubectl wait --for=condition=ready gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting
$ kubectl wait --for=condition=programmed gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting
$ export INGRESS_HOST=$(kubectl get gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting -o jsonpath='{.status.addresses[*].value}')
$ export TCP_INGRESS_PORT=$(kubectl get gtw tcp-echo-gateway -n istio-io-tcp-traffic-shifting -o jsonpath='{.spec.listeners[?(@.name=="tcp-31400")].port}')
{{< /text >}}