2021-11-18 08:57:44 -06:00
// Module is included in the following assemblies:
//
2022-02-07 15:01:19 -06:00
// * serverless/develop/serverless-applications.adoc
2021-11-18 08:57:44 -06:00
2022-02-07 15:01:19 -06:00
:_content-type: REFERENCE
2021-11-18 08:57:44 -06:00
[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:
...
----