×

您可以通过配置networking.knative.dev/http-option注释来启用或禁用服务的 HTTPS 重定向。

重定向服务的 HTTPS

以下示例显示如何在 Knative Service YAML 对象中使用此注释

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: example
  namespace: default
  annotations:
    networking.knative.dev/http-protocol: "redirected"
spec:
  ...