apiVersion: serving.knative.dev/v1
kind: service
metadata:
name: example
namespace: default
annotations:
networking.knative.dev/http-protocol: "redirected"
spec:
...
You can enable or disable HTTPS redirection for a service by configuring the networking.knative.dev/http-option
annotation.