This is a cache of https://docs.openshift.com/serverless/1.28/knative-serving/external-ingress-routing/https-redirect-per-service.html. It is a snapshot of the page at 2024-11-25T17:13:23.131+0000.
HTTPS redirection per <strong>service</strong> - External and Ingress routing | Serving | Red Hat OpenShift Serverless 1.28
×

You can enable or disable HTTPS redirection for a service by configuring the networking.knative.dev/http-option annotation.

Redirecting HTTPS for a service

The following example shows how you can use this annotation in a Knative service YAML object:

apiVersion: serving.knative.dev/v1
kind: service
metadata:
  name: example
  namespace: default
  annotations:
    networking.knative.dev/http-protocol: "redirected"
spec:
  ...