Skip to content

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/v1
kind: HTTPRoute
metadata:
name: web
namespace: web
spec:
parentRefs:
- name: external-gateway
namespace: kube-system
hostnames:
- web.<cluster>.<tenant>.clusters.kupe.cloud
rules:
- backendRefs:
- name: web
port: 80

Use 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.

Terminal window
kubectl describe httproute web -n web
kubectl get svc,pods -n web

Look 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.