简体   繁体   中英

Kong Ingress cert-manager wrong routing

I have a k8s cluster with kong-ingress and cert-manager.

  • Backend at: domain.network/*

To renew the certificate, cert-manager starts a new pod and ingress which should reply at:

  • CertManagerHandler at: domain.network/.well-known/xxx/zzz

However, when trying to access the well-known route, Backend handles the request, not CertManagerHandler

I think it might come from the * in the path of Backend but I'm not sure.

入口

I defined Backend ingress with:

  annotations:
    kubernetes.io/tls-acme: "true"
    acme.cert-manager.io/http01-edit-in-place: "true"
    kubernetes.io/ingress.class: kong
    cert-manager.io/cluster-issuer: letsencrypt-prod

...

http:
        paths:
          - path: /*

How to make the .well-known endpoint to be handled by the cert-manager pod?

I've fixed it by removing the wildcard from the path:

  • /* to /

Did the trick.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM