diff --git a/content/en/docs/ambient/getting-started/cleanup/index.md b/content/en/docs/ambient/getting-started/cleanup/index.md index 640e203c62..d38f528c92 100644 --- a/content/en/docs/ambient/getting-started/cleanup/index.md +++ b/content/en/docs/ambient/getting-started/cleanup/index.md @@ -34,10 +34,10 @@ To delete the Bookinfo sample application and the `curl` deployment, run the fol {{< text bash >}} $ kubectl delete httproute reviews $ kubectl delete authorizationpolicy productpage-viewer -$ kubectl delete -f samples/curl/curl.yaml -$ kubectl delete -f samples/bookinfo/platform/kube/bookinfo.yaml -$ kubectl delete -f samples/bookinfo/platform/kube/bookinfo-versions.yaml -$ kubectl delete -f samples/bookinfo/gateway-api/bookinfo-gateway.yaml +$ kubectl delete -f @samples/curl/curl.yaml@ +$ kubectl delete -f @samples/bookinfo/platform/kube/bookinfo.yaml@ +$ kubectl delete -f @samples/bookinfo/platform/kube/bookinfo-versions.yaml@ +$ kubectl delete -f @samples/bookinfo/gateway-api/bookinfo-gateway.yaml@ {{< /text >}} diff --git a/content/en/docs/ambient/getting-started/deploy-sample-app/index.md b/content/en/docs/ambient/getting-started/deploy-sample-app/index.md index 60ed499b68..59a04e57af 100644 --- a/content/en/docs/ambient/getting-started/deploy-sample-app/index.md +++ b/content/en/docs/ambient/getting-started/deploy-sample-app/index.md @@ -17,8 +17,8 @@ As part of this guide, you'll deploy the Bookinfo application and expose the `pr Start by deploying the application: {{< text bash >}} -$ kubectl apply -f {{< github_file >}}/samples/bookinfo/platform/kube/bookinfo.yaml -$ kubectl apply -f {{< github_file >}}/samples/bookinfo/platform/kube/bookinfo-versions.yaml +$ kubectl apply -f @samples/bookinfo/platform/kube/bookinfo.yaml@ +$ kubectl apply -f @samples/bookinfo/platform/kube/bookinfo-versions.yaml@ {{< /text >}} To verify that the application is running, check the status of the pods: @@ -41,7 +41,7 @@ To access the `productpage` service from outside the cluster, you need to config You will use the Kubernetes Gateway API to deploy a gateway called `bookinfo-gateway`: {{< text syntax=bash snip_id=deploy_bookinfo_gateway >}} -$ kubectl apply -f {{< github_file >}}/samples/bookinfo/gateway-api/bookinfo-gateway.yaml +$ kubectl apply -f @samples/bookinfo/gateway-api/bookinfo-gateway.yaml@ {{< /text >}} By default, Istio creates a `LoadBalancer` service for a gateway. As you will access this gateway by a tunnel, you don't need a load balancer. Change the service type to `ClusterIP` by annotating the gateway: diff --git a/content/en/docs/ambient/getting-started/deploy-sample-app/snips.sh b/content/en/docs/ambient/getting-started/deploy-sample-app/snips.sh index 70bf908457..9efe9fc3c3 100644 --- a/content/en/docs/ambient/getting-started/deploy-sample-app/snips.sh +++ b/content/en/docs/ambient/getting-started/deploy-sample-app/snips.sh @@ -21,12 +21,12 @@ #################################################################################################### snip_deploy_the_bookinfo_application_1() { -kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml -kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo-versions.yaml +kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml +kubectl apply -f samples/bookinfo/platform/kube/bookinfo-versions.yaml } snip_deploy_bookinfo_gateway() { -kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/gateway-api/bookinfo-gateway.yaml +kubectl apply -f samples/bookinfo/gateway-api/bookinfo-gateway.yaml } snip_annotate_bookinfo_gateway() { diff --git a/content/en/docs/ambient/getting-started/enforce-auth-policies/index.md b/content/en/docs/ambient/getting-started/enforce-auth-policies/index.md index e31dc81848..ff3221a378 100644 --- a/content/en/docs/ambient/getting-started/enforce-auth-policies/index.md +++ b/content/en/docs/ambient/getting-started/enforce-auth-policies/index.md @@ -20,7 +20,7 @@ $ kubectl apply -f - <}} -$ kubectl apply -f samples/curl/curl.yaml +$ kubectl apply -f @samples/curl/curl.yaml@ {{< /text >}} Since the `curl` pod is using a different service account, it will not have access the `productpage` service: @@ -75,7 +75,7 @@ $ kubectl apply -f - <}} +$ kubectl apply -f - <}} + {{< tip >}} -To learn about how to enable more Istio's features, read the [Use Layer 7 features user guide](/docs/ambient/usage/l7-features/). +To learn about how to enable more of Istio's features, read the [Layer 7 features user guide](/docs/ambient/usage/l7-features/). {{< /tip >}} Confirm the new waypoint proxy is enforcing the updated authorization policy: diff --git a/content/en/docs/ambient/getting-started/enforce-auth-policies/snips.sh b/content/en/docs/ambient/getting-started/enforce-auth-policies/snips.sh index 33b9092f00..4223f350f5 100644 --- a/content/en/docs/ambient/getting-started/enforce-auth-policies/snips.sh +++ b/content/en/docs/ambient/getting-started/enforce-auth-policies/snips.sh @@ -25,7 +25,7 @@ kubectl apply -f - <.*" } -! IFS=$'\n' read -r -d '' snip_enforce_layer_7_authorization_policy_6_out <<\ENDSNIP +! IFS=$'\n' read -r -d '' snip_enforce_layer_7_authorization_policy_7_out <<\ENDSNIP Simple Bookstore App ENDSNIP diff --git a/content/en/docs/ambient/getting-started/secure-and-visualize/index.md b/content/en/docs/ambient/getting-started/secure-and-visualize/index.md index 815c4ca493..a9ce264ed7 100644 --- a/content/en/docs/ambient/getting-started/secure-and-visualize/index.md +++ b/content/en/docs/ambient/getting-started/secure-and-visualize/index.md @@ -30,8 +30,8 @@ You now have mTLS encryption between all your pods — without even restarting o Using Istio's dashboard, Kiali, and the Prometheus metrics engine, you can visualize the Bookinfo application. Deploy them both: {{< text syntax=bash snip_id=none >}} -$ kubectl apply -f {{< github_file >}}/samples/addons/prometheus.yaml -$ kubectl apply -f {{< github_file >}}/samples/addons/kiali.yaml +$ kubectl apply -f @samples/addons/prometheus.yaml@ +$ kubectl apply -f @samples/addons/kiali.yaml@ {{< /text >}} You can access the Kiali dashboard by running the following command: diff --git a/content/en/docs/ambient/getting-started/test.sh b/content/en/docs/ambient/getting-started/test.sh index f0c3e39877..b3c680870c 100644 --- a/content/en/docs/ambient/getting-started/test.sh +++ b/content/en/docs/ambient/getting-started/test.sh @@ -48,10 +48,11 @@ _verify_contains snip_deploy_waypoint "$snip_deploy_waypoint_out" _verify_like snip_enforce_layer_7_authorization_policy_2 "$snip_enforce_layer_7_authorization_policy_2_out" snip_deploy_l7_policy +snip_update_l4_policy -_verify_contains snip_enforce_layer_7_authorization_policy_4 "$snip_enforce_layer_7_authorization_policy_4_out" _verify_contains snip_enforce_layer_7_authorization_policy_5 "$snip_enforce_layer_7_authorization_policy_5_out" _verify_contains snip_enforce_layer_7_authorization_policy_6 "$snip_enforce_layer_7_authorization_policy_6_out" +_verify_contains snip_enforce_layer_7_authorization_policy_7 "$snip_enforce_layer_7_authorization_policy_7_out" snip_deploy_httproute snip_test_traffic_split diff --git a/content/en/docs/setup/getting-started/index.md b/content/en/docs/setup/getting-started/index.md index f440e0df5c..729d866cbf 100644 --- a/content/en/docs/setup/getting-started/index.md +++ b/content/en/docs/setup/getting-started/index.md @@ -110,7 +110,7 @@ You have configured Istio to inject sidecar containers into any application you 1. Deploy the [`Bookinfo` sample application](/docs/examples/bookinfo/): {{< text bash >}} - $ kubectl apply -f {{< github_file >}}/samples/bookinfo/platform/kube/bookinfo.yaml + $ kubectl apply -f @samples/bookinfo/platform/kube/bookinfo.yaml@ service/details created serviceaccount/bookinfo-details created deployment.apps/details-v1 created @@ -217,7 +217,7 @@ Use the following instructions to deploy the [Kiali](/docs/ops/integrations/kial 1. Install [Kiali and the other addons]({{< github_tree >}}/samples/addons) and wait for them to be deployed. {{< text bash >}} - $ kubectl apply -f samples/addons + $ kubectl apply -f @samples/addons@ $ kubectl rollout status deployment/kiali -n istio-system Waiting for deployment "kiali" rollout to finish: 0 of 1 updated replicas are available... deployment "kiali" successfully rolled out diff --git a/content/en/docs/setup/getting-started/snips.sh b/content/en/docs/setup/getting-started/snips.sh index b69f70e904..52a412ca44 100644 --- a/content/en/docs/setup/getting-started/snips.sh +++ b/content/en/docs/setup/getting-started/snips.sh @@ -54,7 +54,7 @@ kubectl get crd gateways.gateway.networking.k8s.io &> /dev/null || \ } snip_deploy_the_sample_application_1() { -kubectl apply -f https://raw.githubusercontent.com/istio/istio/master/samples/bookinfo/platform/kube/bookinfo.yaml +kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml } ! IFS=$'\n' read -r -d '' snip_deploy_the_sample_application_1_out <<\ENDSNIP