GithubHelp home page GithubHelp logo

Comments (5)

whitebear009 avatar whitebear009 commented on August 17, 2024

查了一下发现在这个 nginx 上加一条 proxy_ssl_server_name on; 就可以了。

但还是不太理解为什么原来当 https://customplatform-dev.qunhequnhe.com 是 nginx ingress 域名的时候是可以工作的

from higress.

johnlanni avatar johnlanni commented on August 17, 2024

这个就是这样proxy pass的时候nginx默认不传sni。
nginx ingress会默认装一本证书用于没有匹配sni的场景,higress不会,需要给一个没有指定host的ingress设置一个tls secret才可以。

from higress.

whitebear009 avatar whitebear009 commented on August 17, 2024

需要给一个没有指定host的ingress设置一个tls secret才可以

指的是这个注解是吗 higress.io/proxy-ssl-secret

from higress.

johnlanni avatar johnlanni commented on August 17, 2024

不是,ingress spec里的secret字段

from higress.

whitebear009 avatar whitebear009 commented on August 17, 2024
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: empty-sni
  namespace: ingress-service
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - backend:
          service:
            name: empty-sni-svc
            port:
              number: 80
        path: /
        pathType: Prefix
  tls:
  - secretName: https-secret-qunhequnhe

---
apiVersion: v1
kind: Service
metadata:
  name: empty-sni-svc
  namespace: ingress-service
spec:
  externalName: higress-gateway.higress-system.svc.cluster.local
  ports:
  - port: 80
    protocol: TCP
    targetPort: 80
  type: ExternalName

加了这一段 yaml 后确实能工作了,大佬说的是这个意思吗

from higress.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.