mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-06 15:46:57 +01:00
22 lines
570 B
Plaintext
22 lines
570 B
Plaintext
// Module is included in the following assemblies:
|
|
//
|
|
// * serverless/admin_guide/knative-serving-CR-config.adoc
|
|
|
|
[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"
|
|
...
|
|
----
|