jetstack / kube-lego

DEPRECATED: Automatically request certificates for Kubernetes Ingress resources from Let's Encrypt
Apache License 2.0
2.16k stars 269 forks source link

Unsupported ingress class #312

Open Stono opened 6 years ago

Stono commented 6 years ago

Hey, I use nginx-ingress in a couple of configurations, as such they have a custom class of nginx-internal and nginx-external.

I want to do kube-lego on the external ingress, but I'm getting:

time="2018-01-25T20:36:48Z" level=info msg="ignoring as unsupported ingress class 'nginx-external'. Did you you forget to specify LEGO_DEFAULT_INGRESS_CLASS ?" context=ingress name=at-consumer-platform-ingress-external namespace=default

My pod is configured with:

        env:
        - name: LEGO_SUPPORTED_INGRESS_CLASS
          value: nginx-external
        - name: LEGO_DEFAULT_INGRESS_CLASS
          value: nginx-external

So I'm not really sure what else I could do? Thanks Karl

eversC commented 6 years ago

I remember running into this, does setting the following work?

in kube-lego env:

LEGO_DEFAULT_INGRESS_PROVIDER: nginx

and in the ingress you're trying to get it to work with (as an annotation):

kubernetes.io/ingress.provider: "nginx"