2022-02-14 08:59:27 -06:00
// Module included in the following assemblies:
2021-11-18 08:57:44 -06:00
//
2022-02-14 08:59:27 -06:00
// * /serverless/admin_guide/knative-serving-CR-config.adoc
2021-11-18 08:57:44 -06:00
2022-02-14 08:59:27 -06:00
:_content-type: REFERENCE
2021-11-18 08:57:44 -06:00
[id="serverless-https-redirect-global_{context}"]
= HTTPS redirection global settings
You can enable HTTPS redirection for all services on the cluster by configuring the `httpProtocol` spec for the `KnativeServing` custom resource, as shown in the following example:
[source,yaml]
----
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeServing
metadata:
name: knative-serving
spec:
config:
network:
httpProtocol: "redirected"
...
----