does allow route field defined services from which namespace can be attached to this gateway while creating http route.
suppose i created
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: nginx-gateway
namespace: default
spec:
gatewayClassName: nginx
listeners:
- name: http
protocol: HTTP
port: 80
allowedRoutes:
namespaces:
from: same
and created http route as
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: basic-route
namespace: default
spec:
parentRefs:
- name: nginx-gateway
rules:
- matches:
- path:
type: PathPrefix
value: /app
backendRefs:
- name: my-app
port: 80
does service which i am pointing to eg= backendRefs: - name: my-app port: 80
needs to be in same namespace as i have defined in my gateway that allowedRoutes:
namespaces:
from: same