HTTP Routes
Create this HTTPRoute in the same namespace as your application’s Service.
Replace web, the port, and the hostname with your values. Keep parentRefs
as shown.
apiVersion: gateway.networking.k8s.io/v1kind: HTTPRoutemetadata: name: web namespace: webspec: parentRefs: - name: external-gateway namespace: kube-system hostnames: - web.<cluster>.<tenant>.clusters.kupe.cloud rules: - backendRefs: - name: web port: 80Use a hostname under <cluster>.<tenant>.clusters.kupe.cloud for your cluster,
or follow Custom domains to use your own domain.
HTTPS is automatic for your cluster’s Kupe hostname.
Check the route
Section titled “Check the route”kubectl describe httproute web -n webkubectl get svc,pods -n webLook for Accepted=True and ResolvedRefs=True, then open the HTTPS URL.
If it does not work, check the Service name, port, and pod readiness.
Contact support if you need help.