Rename to example domain (#44)

This commit is contained in:
Ryan Gregg 2018-07-02 10:00:01 -07:00 committed by GitHub
parent dba77c7ab3
commit c57f006f4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
14 changed files with 27 additions and 27 deletions

View File

@ -56,7 +56,7 @@ To access this service via `curl`, we first need to determine its ingress addres
```shell ```shell
$ watch kubectl get ing $ watch kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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: Once the `ADDRESS` gets assigned to the cluster, you can run:

View File

@ -123,14 +123,14 @@ folder) you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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 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. `{IP_ADDRESS}` with the address you see returned in the previous step.
```shell ```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! Hello World!
``` ```

View File

@ -134,14 +134,14 @@ folder) you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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 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. `{IP_ADDRESS}` with the address you see returned in the previous step.
```shell ```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! Hello World: Go Sample v1!
``` ```

View File

@ -147,14 +147,14 @@ folder) you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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 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. `{IP_ADDRESS}` with the address you see returned in the previous step.
```shell ```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 Hello World: Spring Boot Sample v1
``` ```

View File

@ -165,14 +165,14 @@ folder) you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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 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. `{IP_ADDRESS}` with the address you see returned in the previous step.
```shell ```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 Hello World: NOT SPECIFIED
``` ```

View File

@ -104,14 +104,14 @@ you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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 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. `{IP_ADDRESS}` with the address you see returned in the previous step.
```shell ```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! Hello World: PHP Sample v1!
``` ```

View File

@ -116,14 +116,14 @@ folder) you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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}` 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. with the address you see returned in the previous step.
```shell ```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! Hello World: Python Sample v1!
``` ```

View File

@ -131,14 +131,14 @@ you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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}` 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. with the address you see returned in the previous step.
```shell ```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! Hello World: Ruby Sample v1!
``` ```

View File

@ -149,14 +149,14 @@ folder) you're ready to build and deploy the sample app.
kubectl get ing kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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 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. `{IP_ADDRESS}` with the address you see returned in the previous step.
```shell ```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! Hello World!
``` ```

View File

@ -56,14 +56,14 @@ You should see 2 Ingress objects:
``` ```
NAME HOSTS ADDRESS PORTS 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 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.demo-domain.com,*.search-service.default.demo-domain.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. 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 You can directly access "Search" service by running
```shell ```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 You should see
``` ```

View File

@ -52,12 +52,12 @@ spec:
rewrite: rewrite:
# Rewrite the original host header to the host header of Search service # Rewrite the original host header to the host header of Search service
# in order to redirect requests to Search service. # in order to redirect requests to Search service.
authority: search-service.default.demo-domain.com authority: search-service.default.example.com
route: route:
- destination: - destination:
# istio-ingress is the k8s service created by Istio as the actual entry of all traffic incoming to the cluster. # 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 # 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 name: istio-ingress
namespace: istio-system namespace: istio-system
weight: 100 weight: 100
@ -82,11 +82,11 @@ spec:
rewrite: rewrite:
# Rewrite the original host header to the host header of Login service # Rewrite the original host header to the host header of Login service
# in order to redirect requests to Login service. # in order to redirect requests to Login service.
authority: login-service.default.demo-domain.com authority: login-service.default.example.com
route: route:
# istio-ingress is the k8s service created by Istio as the actual entry of all traffic incoming to the cluster. # 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 # 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: - destination:
name: istio-ingress name: istio-ingress
namespace: istio-system namespace: istio-system

View File

@ -46,7 +46,7 @@ To access this service via `curl`, we first need to determine its ingress addres
```shell ```shell
$ watch kubectl get ing $ watch kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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: Once the `ADDRESS` gets assigned to the cluster, you can run:

View File

@ -45,7 +45,7 @@ To access this service via `curl`, we first need to determine its ingress addres
```shell ```shell
$ watch kubectl get ing $ watch kubectl get ing
NAME HOSTS ADDRESS PORTS AGE 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: Once the `ADDRESS` gets assigned to the cluster, you can run:

View File

@ -59,7 +59,7 @@ When the ingress is ready, you'll see an IP address in the ADDRESS field:
``` ```
NAME HOSTS ADDRESS PORTS AGE 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: Once the `ADDRESS` gets assigned to the cluster, you can run: