1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/serverless-https-redirect-service.adoc

24 lines
714 B
Plaintext
Raw Normal View History

2021-11-18 08:57:44 -06:00
// Module is included in the following assemblies:
//
// * serverless/develop/serverless-applications.adoc
2021-11-18 08:57:44 -06:00
:_content-type: REFERENCE
2021-11-18 08:57:44 -06:00
[id="serverless-https-redirect-service_{context}"]
= HTTPS redirection per service
// need better details from eng team about use case to update this topic
2022-05-05 11:49:00 -05:00
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:
2021-11-18 08:57:44 -06:00
[source,yaml]
----
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: example
namespace: default
annotations:
2022-05-05 11:49:00 -05:00
networking.knative.dev/http-option: "redirected"
2021-11-18 08:57:44 -06:00
spec:
...
----