首页 > 其他分享 >用Ingress生成route,如何让生成route的insecureEdgeTerminationPolicy 的值为Allow

用Ingress生成route,如何让生成route的insecureEdgeTerminationPolicy 的值为Allow

时间:2025-01-13 16:28:11浏览次数:10  
标签:Redirect Ingress io route insecureEdgeTerminationPolicy ingress 生成 Allow

对于此功能当前还没有实现,相关的新功能添加的 Jira ticket 如下:
Annotate the ingress to create the route with the spec.tls.insecureEdgeTerminationPolicy set to Allow

目前已经实现的功能:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    route.openshift.io/termination: "edge" 
    # 可以通过这个注解设置route的termination的值为"edge"还是"reencrypt"(已经实现)
    route.openshift.io/insecureEdgeTerminationPolicy: "Allow"
    # 可以通过这个注解设置route的insecureEdgeTerminationPolicy的值为"Allow"/"Redirect"/"None"

其他解决办法:
ingress 生成的route 的时候(HTTPS),insecureEdgeTerminationPolicy的属性默认为Redirect。
可以后续通过patch route的方式让其变为Allow

oc patch route <route-name> --type=merge -p '{"spec":{"tls":{"insecureEdgeTerminationPolicy":"Allow"}}}'

标签:Redirect,Ingress,io,route,insecureEdgeTerminationPolicy,ingress,生成,Allow
From: https://blog.csdn.net/qq_32789063/article/details/145118371

相关文章