apiVersion: route.openshift.io/v1
kind: Route
metadata:
  name: heartbeat
  namespace: josie-health
  annotations:
    cert-manager.io/issuer-kind: ClusterIssuer
    cert-manager.io/issuer-name: letsencrypt-http01
    cert-manager.io/certificate-name: heartbeat-josie-health-tls
    haproxy.router.openshift.io/redirect-to-https: "true"
spec:
  host: heartbeat.josie.health
  to:
    kind: Service
    name: heartbeat
    weight: 100
  port:
    targetPort: http
  tls:
    termination: edge
    insecureEdgeTerminationPolicy: Redirect