WHCSRL 技术网

Ingress访问后端K8s pod如果需要https的配置

Ingress的扩展也有好多种

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

  1. kind: Ingress
  2. metadata:
  3. annotations:
  4. nginx.ingress.kubernetes.io/backend-protocol: HTTPS

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

  1. kind: Service
  2. metadata:
  3. annotations:
  4. konghq.com/protocol: https

推荐阅读