2021-11-18 08:57:44 -06:00
|
|
|
// Module is included in the following assemblies:
|
|
|
|
|
//
|
2023-01-19 12:17:28 +00:00
|
|
|
// * serverless/knative-serving/external-ingress-routing/https-redirect-per-service.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}"]
|
2023-01-19 12:17:28 +00:00
|
|
|
= Redirecting HTTPS for a service
|
2021-11-18 08:57:44 -06:00
|
|
|
|
2022-03-31 11:18:16 -05:00
|
|
|
// need better details from eng team about use case to update this topic
|
2023-01-19 12:17:28 +00:00
|
|
|
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:
|
|
|
|
|
...
|
|
|
|
|
----
|