homek8s/apps/base/piedmont/httproute.yaml

27 lines
569 B
YAML
Raw Normal View History

apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: piedmont
namespace: piedmont
spec:
parentRefs:
- name: public
namespace: gateway-system
hostnames:
- piedmonthomesvc.com
- www.piedmonthomesvc.com
rules:
- matches:
- path:
type: PathPrefix
value: /api/contact
backendRefs:
- name: piedmont-contact
port: 8090
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: piedmont-site
port: 80