mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
24 lines
714 B
Plaintext
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:
|
|
...
|
|
----
|