Skip to content

Commit

Permalink
Update gateway examples to use server names (istio#122)
Browse files Browse the repository at this point in the history
Signed-off-by: Shriram Rajagopalan <[email protected]>
  • Loading branch information
rshriram authored Jun 4, 2020
1 parent 5f40cff commit c1469fa
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
3 changes: 2 additions & 1 deletion tsb/gateway/v2/ingress_gateway.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion tsb/gateway/v2/ingress_gateway.pb.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
labels:
app: gateway
http:
- port: 9443
- name: bookinfo
port: 9443
hostname: bookinfo.com
tls:
mode: SIMPLE
Expand Down
3 changes: 2 additions & 1 deletion tsb/gateway/v2/ingress_gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ syntax = "proto3";
// labels:
// app: gateway
// http:
// - port: 9443
// - name: bookinfo
// port: 9443
// hostname: bookinfo.com
// tls:
// mode: SIMPLE
Expand Down
9 changes: 6 additions & 3 deletions tsb/gateway/v2/tier1_gateway.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions tsb/gateway/v2/tier1_gateway.pb.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
labels:
app: gateway
externalServers:
- hostname: movieinfo.com # TLS termination and Istio mTLS to upstream
- name: movieinfo
hostname: movieinfo.com # TLS termination and Istio mTLS to upstream
tls:
mode: SIMPLE
secretName: movieinfo-secrets
Expand Down Expand Up @@ -70,10 +71,12 @@
labels:
app: gateway
internalServers: # forwarding gateway
- hostname: movieinfo.com
- name: movieinfo
hostname: movieinfo.com
clusters:
- network: vpc-02 # the target gateway IPs will be automatically determined
- hostname: bookinfo.com # route to any ingress gateway exposing bookinfo.com
- name: bookinfo
hostname: bookinfo.com # route to any ingress gateway exposing bookinfo.com
</code></pre>

<p>** NOTE:** If two clusters have direct connectivity, declaring
Expand Down
9 changes: 6 additions & 3 deletions tsb/gateway/v2/tier1_gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ syntax = "proto3";
// labels:
// app: gateway
// externalServers:
// - hostname: movieinfo.com # TLS termination and Istio mTLS to upstream
// - name: movieinfo
// hostname: movieinfo.com # TLS termination and Istio mTLS to upstream
// tls:
// mode: SIMPLE
// secretName: movieinfo-secrets
Expand Down Expand Up @@ -72,10 +73,12 @@ syntax = "proto3";
// labels:
// app: gateway
// internalServers: # forwarding gateway
// - hostname: movieinfo.com
// - name: movieinfo
// hostname: movieinfo.com
// clusters:
// - network: vpc-02 # the target gateway IPs will be automatically determined
// - hostname: bookinfo.com # route to any ingress gateway exposing bookinfo.com
// - name: bookinfo
// hostname: bookinfo.com # route to any ingress gateway exposing bookinfo.com
//```
//
// ** NOTE:** If two clusters have direct connectivity, declaring
Expand Down

0 comments on commit c1469fa

Please sign in to comment.