Skip to content

Commit

Permalink
feat: bookinfo gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
bcochofel committed Apr 4, 2021
1 parent 7934ccc commit e4a5bd4
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 3 deletions.
42 changes: 42 additions & 0 deletions apps/staging/bookinfo/bookinfo-gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: bookinfo-gateway
spec:
selector:
istio: ingressgateway # use istio default controller
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- "*"
---
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: bookinfo
spec:
hosts:
- "*"
gateways:
- bookinfo-gateway
http:
- match:
- uri:
exact: /productpage
- uri:
prefix: /static
- uri:
exact: /login
- uri:
exact: /logout
- uri:
prefix: /api/v1/products
route:
- destination:
host: productpage
port:
number: 9080
3 changes: 2 additions & 1 deletion apps/staging/bookinfo/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ kind: Kustomization
namespace: default
resources:
- namespace.yaml
- bookinfo-vs.yaml
#- bookinfo-vs.yaml
- bookinfo-gateway.yaml
- https://raw.githubusercontent.com/istio/istio/release-1.9/samples/bookinfo/platform/kube/bookinfo.yaml
- https://raw.githubusercontent.com/istio/istio/release-1.9/samples/bookinfo/networking/destination-rule-all.yaml
- https://raw.githubusercontent.com/istio/istio/release-1.9/samples/bookinfo/platform/kube/bookinfo-details-v2.yaml
Expand Down
4 changes: 2 additions & 2 deletions apps/staging/gateway/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ resources:
- gateway.yaml
- issuer.yaml
- certificate.yaml
- alertmanager-vs.yaml
- prometheus-vs.yaml
# - alertmanager-vs.yaml
# - prometheus-vs.yaml
- grafana-vs.yaml
- tracing-vs.yaml
- thanos-query-vs.yaml

0 comments on commit e4a5bd4

Please sign in to comment.