apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/configuration-snippet: |
      proxy_set_header Upgrade $http_upgrade;
      proxy_set_header Connection "upgrade";
      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
      proxy_set_header Host $host;
    nginx.ingress.kubernetes.io/service-weight: ''
    nginx.ingress.kubernetes.io/upstream-hash-by: $the_real_ip

阿里云服务优惠购买

Logo

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

更多推荐