Add the contact Deployment and Service, and match PathPrefix /api/contact before the site catch-all so the quote form does not hit nginx.
27 lines
569 B
YAML
27 lines
569 B
YAML
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
|