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-05-11 18:04:38 +00:00

24 lines
714 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
// need better details from eng team about use case to update this topic
You can enable or disable HTTPS redirection for a service by configuring the `networking.knative.dev/http-option` annotation. The following example shows how you can use this annotation in a Knative `Service` YAML object:
[source,yaml]
----
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: example
namespace: default
annotations:
networking.knative.dev/http-option: "redirected"
spec:
...
----