1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/serverless-https-redirect-service.adoc
2022-02-08 16:04:32 +00:00

23 lines
578 B
Plaintext

// Module is included in the following assemblies:
//
// * serverless/develop/serverless-applications.adoc
:_content-type: REFERENCE
[id="serverless-https-redirect-service_{context}"]
= HTTPS redirection per service
You can enable or disable HTTPS redirection for a service by configuring the `networking.knative.dev/httpOption` annotation, as shown in the following example:
[source,yaml]
----
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: example
namespace: default
annotations:
networking.knative.dev/httpOption: "redirected"
spec:
...
----