-
I got a simple service like: apiVersion: v1
kind: Service
metadata:
name: build-service
namespace: appl-lab-e1
spec:
ports:
- name: proxy-port
port: 8082
protocol: TCP
targetPort: proxy-port and now I want a HTTPRoute to redirect all traffic for an url to that service. kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: hello
spec:
parentRefs:
- name: <???>
namespace: <same as the service>
hostnames:
- "my-route.domain.com"
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: build-service
port: 8082 and I tried around with various values for the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Roemer, a HTTPRoute won't do anything without:
I'd suggest following the Getting Started guide (https://gateway-api.sigs.k8s.io/guides/), then the Simple Gateway (https://gateway-api.sigs.k8s.io/guides/simple-gateway/) guide to get started. |
Beta Was this translation helpful? Give feedback.
Hi @Roemer, a HTTPRoute won't do anything without:
I'd suggest following the Getting Started guide (https://gateway-api.sigs.k8s.io/guides/), then the Simple Gateway (https://gateway-api.sigs.k8s.io/guides/simple-gateway/) guide to get started.