mirror of https://github.com/knative/docs.git
Rename to example domain (#44)
This commit is contained in:
parent
dba77c7ab3
commit
c57f006f4c
|
@ -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:
|
||||
|
|
|
@ -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!
|
||||
```
|
||||
|
||||
|
|
|
@ -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!
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
@ -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!
|
||||
```
|
||||
|
||||
|
|
|
@ -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!
|
||||
```
|
||||
|
||||
|
|
|
@ -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!
|
||||
```
|
||||
|
||||
|
|
|
@ -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!
|
||||
```
|
||||
|
||||
|
|
|
@ -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
|
||||
```
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue