Ingress的扩展也有好多种

如果用的是nginx ingress,需要在ingress上添加annotations

kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/backend-protocol: HTTPS

如果用的是kong ingress扩展,需要在service层添加annotations

kind: Service
metadata:
  annotations:
    konghq.com/protocol: https

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐