Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to GWAPI for store-front routing #144

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions sample-manifests/istio/gateway-api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: store-front-gateway-external
namespace: pets
spec:
gatewayClassName: istio # Specifies the GatewayClass to use
listeners:
- name: http
protocol: HTTP # Protocol used for this listener
port: 80 # Port on which the Gateway will listen
allowedRoutes:
namespaces:
from: All # Allows routes from all namespaces to attach
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: store-front-vs-external
namespace: pets
spec:
parentRefs:
- name: store-front-gateway-external # Attaches this route to the specified Gateway
hostnames:
- "*" # Matches all hostnames
rules:
- matches:
- path:
type: PathPrefix
value: / # Matches all paths
backendRefs:
- name: store-front # Forwards requests to the 'store-front' service
kind: Service # Specifies the kind of backend (Service)
port: 80 # Port on the backend service