From c57f006f4c14db303d9fb0e26f14c78b0bdfb76c Mon Sep 17 00:00:00 2001 From: Ryan Gregg Date: Mon, 2 Jul 2018 10:00:01 -0700 Subject: [PATCH] Rename to example domain (#44) --- serving/samples/buildpack-function/README.md | 2 +- serving/samples/helloworld-csharp/README.md | 4 ++-- serving/samples/helloworld-go/README.md | 4 ++-- serving/samples/helloworld-java/README.md | 4 ++-- serving/samples/helloworld-nodejs/README.md | 4 ++-- serving/samples/helloworld-php/README.md | 4 ++-- serving/samples/helloworld-python/README.md | 4 ++-- serving/samples/helloworld-ruby/README.md | 4 ++-- serving/samples/helloworld-rust/README.md | 4 ++-- serving/samples/knative-routing/README.md | 6 +++--- serving/samples/knative-routing/routing.yaml | 8 ++++---- serving/samples/steren-app/README.md | 2 +- serving/samples/steren-function/README.md | 2 +- serving/samples/stock-rest-app/README.md | 2 +- 14 files changed, 27 insertions(+), 27 deletions(-) diff --git a/serving/samples/buildpack-function/README.md b/serving/samples/buildpack-function/README.md index 1c76bb865..c9ea94136 100644 --- a/serving/samples/buildpack-function/README.md +++ b/serving/samples/buildpack-function/README.md @@ -56,7 +56,7 @@ To access this service via `curl`, we first need to determine its ingress addres ```shell $ watch kubectl get ing NAME HOSTS ADDRESS PORTS AGE -buildpack-function-ingress buildpack-function.default.demo-domain.com 0.0.0.0 80 3m +buildpack-function-ingress buildpack-function.default.example.com 0.0.0.0 80 3m ``` Once the `ADDRESS` gets assigned to the cluster, you can run: diff --git a/serving/samples/helloworld-csharp/README.md b/serving/samples/helloworld-csharp/README.md index f8d93d6eb..ee7bcadad 100644 --- a/serving/samples/helloworld-csharp/README.md +++ b/serving/samples/helloworld-csharp/README.md @@ -123,14 +123,14 @@ folder) you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-csharp-ingress helloworld-csharp.default.demo-domain.com 35.232.134.1 80 1m + helloworld-csharp-ingress helloworld-csharp.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-csharp.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-csharp.default.example.com" http://{IP_ADDRESS} Hello World! ``` diff --git a/serving/samples/helloworld-go/README.md b/serving/samples/helloworld-go/README.md index 20a460ceb..fc671f58f 100644 --- a/serving/samples/helloworld-go/README.md +++ b/serving/samples/helloworld-go/README.md @@ -134,14 +134,14 @@ folder) you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-go-ingress helloworld-go.default.demo-domain.com,*.helloworld-go.default.demo-domain.com 35.232.134.1 80 1m + helloworld-go-ingress helloworld-go.default.example.com,*.helloworld-go.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the results. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-go.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-go.default.example.com" http://{IP_ADDRESS} Hello World: Go Sample v1! ``` diff --git a/serving/samples/helloworld-java/README.md b/serving/samples/helloworld-java/README.md index e51020c14..201af82c7 100644 --- a/serving/samples/helloworld-java/README.md +++ b/serving/samples/helloworld-java/README.md @@ -147,14 +147,14 @@ folder) you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-java-ingress helloworld-java.default.demo-domain.com 35.232.134.1 80 1m + helloworld-java-ingress helloworld-java.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-java.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-java.default.example.com" http://{IP_ADDRESS} Hello World: Spring Boot Sample v1 ``` diff --git a/serving/samples/helloworld-nodejs/README.md b/serving/samples/helloworld-nodejs/README.md index f986bc8bf..e1ef69ff6 100644 --- a/serving/samples/helloworld-nodejs/README.md +++ b/serving/samples/helloworld-nodejs/README.md @@ -165,14 +165,14 @@ folder) you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-nodejs-ingress helloworld-nodejs.default.demo-domain.com 35.232.134.1 80 1m + helloworld-nodejs-ingress helloworld-nodejs.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-nodejs.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-nodejs.default.example.com" http://{IP_ADDRESS} Hello World: NOT SPECIFIED ``` diff --git a/serving/samples/helloworld-php/README.md b/serving/samples/helloworld-php/README.md index 767013ca2..e0a325420 100644 --- a/serving/samples/helloworld-php/README.md +++ b/serving/samples/helloworld-php/README.md @@ -104,14 +104,14 @@ you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-php-ingress helloworld-php.default.demo-domain.com,*.helloworld-php.default.demo-domain.com 35.232.134.1 80 1m + helloworld-php-ingress helloworld-php.default.example.com,*.helloworld-php.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-php.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-php.default.example.com" http://{IP_ADDRESS} Hello World: PHP Sample v1! ``` diff --git a/serving/samples/helloworld-python/README.md b/serving/samples/helloworld-python/README.md index 083e9e5e5..472e43b29 100644 --- a/serving/samples/helloworld-python/README.md +++ b/serving/samples/helloworld-python/README.md @@ -116,14 +116,14 @@ folder) you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-python-ingress helloworld-python.default.demo-domain.com,*.helloworld-python.default.demo-domain.com 35.232.134.1 80 1m + helloworld-python-ingress helloworld-python.default.example.com,*.helloworld-python.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-python.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-python.default.example.com" http://{IP_ADDRESS} Hello World: Python Sample v1! ``` diff --git a/serving/samples/helloworld-ruby/README.md b/serving/samples/helloworld-ruby/README.md index 8f3621469..6fb0d5243 100644 --- a/serving/samples/helloworld-ruby/README.md +++ b/serving/samples/helloworld-ruby/README.md @@ -131,14 +131,14 @@ you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-ruby-ingress helloworld-ruby.default.demo-domain.com,*.helloworld-ruby.default.demo-domain.com 35.232.134.1 80 1m + helloworld-ruby-ingress helloworld-ruby.default.example.com,*.helloworld-ruby.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-ruby.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-ruby.default.example.com" http://{IP_ADDRESS} Hello World: Ruby Sample v1! ``` diff --git a/serving/samples/helloworld-rust/README.md b/serving/samples/helloworld-rust/README.md index 15b42ee32..7fcb90554 100644 --- a/serving/samples/helloworld-rust/README.md +++ b/serving/samples/helloworld-rust/README.md @@ -149,14 +149,14 @@ folder) you're ready to build and deploy the sample app. kubectl get ing NAME HOSTS ADDRESS PORTS AGE - helloworld-rust-ingress helloworld-rust.default.demo-domain.com 35.232.134.1 80 1m + helloworld-rust-ingress helloworld-rust.default.example.com 35.232.134.1 80 1m ``` 1. Now you can make a request to your app to see the result. Replace `{IP_ADDRESS}` with the address you see returned in the previous step. ```shell - curl -H "Host: helloworld-rust.default.demo-domain.com" http://{IP_ADDRESS} + curl -H "Host: helloworld-rust.default.example.com" http://{IP_ADDRESS} Hello World! ``` diff --git a/serving/samples/knative-routing/README.md b/serving/samples/knative-routing/README.md index ff6d05bb4..f2498654c 100644 --- a/serving/samples/knative-routing/README.md +++ b/serving/samples/knative-routing/README.md @@ -56,14 +56,14 @@ You should see 2 Ingress objects: ``` NAME HOSTS ADDRESS PORTS -login-service-ela-ingress login-service.default.demo-domain.com,*.login-service.default.demo-domain.com 35.237.65.249 80 -search-service-ela-ingress search-service.default.demo-domain.com,*.search-service.default.demo-domain.com 35.237.65.249 80 +login-service-ela-ingress login-service.default.example.com,*.login-service.default.example.com 35.237.65.249 80 +search-service-ela-ingress search-service.default.example.com,*.search-service.default.example.com 35.237.65.249 80 ``` The login-service-ela-ingress and search-service-ela-ingress are Ingresses corresponding to "Login" service and "Search" service. You can directly access "Search" service by running ```shell -curl http://35.237.65.249 --header "Host:search-service.default.demo-domain.com" +curl http://35.237.65.249 --header "Host:search-service.default.example.com" ``` You should see ``` diff --git a/serving/samples/knative-routing/routing.yaml b/serving/samples/knative-routing/routing.yaml index 3dc1aeec5..1147d5042 100644 --- a/serving/samples/knative-routing/routing.yaml +++ b/serving/samples/knative-routing/routing.yaml @@ -52,12 +52,12 @@ spec: rewrite: # Rewrite the original host header to the host header of Search service # in order to redirect requests to Search service. - authority: search-service.default.demo-domain.com + authority: search-service.default.example.com route: - destination: # istio-ingress is the k8s service created by Istio as the actual entry of all traffic incoming to the cluster. # Basically here we redirect the request to the cluster entry again with updated header - # "search-service.default.demo-domain.com" so the request will eventually be directed to Search service. + # "search-service.default.example.com" so the request will eventually be directed to Search service. name: istio-ingress namespace: istio-system weight: 100 @@ -82,11 +82,11 @@ spec: rewrite: # Rewrite the original host header to the host header of Login service # in order to redirect requests to Login service. - authority: login-service.default.demo-domain.com + authority: login-service.default.example.com route: # istio-ingress is the k8s service created by Istio as the actual entry of all traffic incoming to the cluster. # Basically here we redirect the request to the cluster entry again with updated header - # "login-service.default.demo-domain.com" so the request will eventually be directed to Login service. + # "login-service.default.example.com" so the request will eventually be directed to Login service. - destination: name: istio-ingress namespace: istio-system diff --git a/serving/samples/steren-app/README.md b/serving/samples/steren-app/README.md index 61491f6ef..01e47204a 100644 --- a/serving/samples/steren-app/README.md +++ b/serving/samples/steren-app/README.md @@ -46,7 +46,7 @@ To access this service via `curl`, we first need to determine its ingress addres ```shell $ watch kubectl get ing NAME HOSTS ADDRESS PORTS AGE -steren-sample-app-ingress steren-sample-app.default.demo-domain.net 80 3m +steren-sample-app-ingress steren-sample-app.default.example.net 80 3m ``` Once the `ADDRESS` gets assigned to the cluster, you can run: diff --git a/serving/samples/steren-function/README.md b/serving/samples/steren-function/README.md index 2e062dcca..fa653060e 100644 --- a/serving/samples/steren-function/README.md +++ b/serving/samples/steren-function/README.md @@ -45,7 +45,7 @@ To access this service via `curl`, we first need to determine its ingress addres ```shell $ watch kubectl get ing NAME HOSTS ADDRESS PORTS AGE -steren-sample-fn-ingress steren-sample-fn.default.demo-domain.net 80 3m +steren-sample-fn-ingress steren-sample-fn.default.example.net 80 3m ``` Once the `ADDRESS` gets assigned to the cluster, you can run: diff --git a/serving/samples/stock-rest-app/README.md b/serving/samples/stock-rest-app/README.md index ddc3010e1..495369367 100644 --- a/serving/samples/stock-rest-app/README.md +++ b/serving/samples/stock-rest-app/README.md @@ -59,7 +59,7 @@ When the ingress is ready, you'll see an IP address in the ADDRESS field: ``` NAME HOSTS ADDRESS PORTS AGE -stock-route-example-ingress stock-route-example.default.demo-domain.com 35.185.44.102 80 1m +stock-route-example-ingress stock-route-example.default.example.com 35.185.44.102 80 1m ``` Once the `ADDRESS` gets assigned to the cluster, you can run: