You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can see from the log that the controller notices the ingress change, then it don't find the secret, because kube-lego is working on it, but once it's finished, the secret is added to the local store and nginx is reloaded.
I0912 18:59:57.713489 5 event.go:218] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"hosting", Name:"my-ingress", UID:"9216396a-97ec-11e7-b000-062bd6dfd378", APIVersion:"extensions", ResourceVersion:"26522748", FieldPath:""}): type: 'Normal' reason: 'CREATE' Ingress hosting/my-ingress
I0912 18:59:58.111156 5 controller.go:477] backend reload required
I0912 18:59:58.203727 5 controller.go:486] ingress backend successfully reloaded...
W0912 19:00:18.108475 5 backend_ssl.go:41] error obtaining PEM from secret hosting/my-secret: secret named hosting/my-secret does not exist
W0912 19:00:18.110262 5 controller.go:1215] ssl certificate "hosting/my-secret" does not exist in local store
I0912 19:00:18.111127 5 controller.go:477] backend reload required
I0912 19:00:18.202267 5 controller.go:486] ingress backend successfully reloaded...
W0912 19:00:21.443465 5 controller.go:1215] ssl certificate "hosting/my-secret" does not exist in local store
I0912 19:00:24.776136 5 backend_ssl.go:58] adding secret hosting/my-secret to the local store
I0912 19:00:24.778968 5 controller.go:477] backend reload required
I0912 19:00:24.870096 5 controller.go:486] ingress backend successfully reloaded...
I'm trying to fix it, but I'm having hard time I have to say…I'll continue anyway, but any hint is very appreciated.
The text was updated successfully, but these errors were encountered:
stibi
changed the title
Problem with reload of a secret when an ingress has more than one host configured
Problem with nginx reload when an ingress has more than one host configured with tls enabled
Sep 12, 2017
Hi,
I think the reload doesn't work in the following case:
If you create an ingress with one host, enable tls for it and let kube-lego to issue a certificate, it works nice:
I can see from the log that the controller notices the ingress change, then it don't find the secret, because kube-lego is working on it, but once it's finished, the secret is added to the local store and nginx is reloaded.
The problem is when you add another host:
After the certificate is issued, nginx don't reload:
You have to trigger the reload by another ingress modification for example, then the secret is picked up and the host is redirected to https…
Maybe #991 and #1032 broke this a bit?
I'm trying to fix it, but I'm having hard time I have to say…I'll continue anyway, but any hint is very appreciated.
The text was updated successfully, but these errors were encountered: