It does show that there is a certificate when I type my domain into the website.
It seems that there are two containers in the pod named autohttps-7b4fb9dd6b-h75pv
, both of which are ready.
kubectl logs autohttps-7b4fb9dd6b-h75pv -n jhub -c nginx
yields:
W0708 23:15:45.403955 6 controller.go:1026] unexpected error validating SSL certificate jhub/kubelego-tls-proxy-jhub for host www.jupyter.domain.org. Reason: x509: certificate is valid for jupyter.domain.org, not www.jupyter.domain.org
W0708 23:15:45.403996 6 controller.go:1027] Validating certificate against DNS names. This will be deprecated in a future version.
W0708 23:15:45.404019 6 controller.go:1032] ssl certificate jhub/kubelego-tls-proxy-jhub does not contain a Common Name or Subject Alternative Name for host www.jupyter.domain.org. Reason: x509: certificate is valid for jupyter.domain.org, not www.jupyter.domain.org
I0708 23:15:45.404083 6 controller.go:168] backend reload required
I0708 23:15:45.530176 6 controller.go:177] ingress backend successfully reloaded...
I0708 23:15:45.587496 6 event.go:218] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"jhub", Name:"kube-lego-nginx", UID:"c4e7d01e-a137-11e9-ad13-00259051cf1c", APIVersion:"extensions", ResourceVersion:"6190859", FieldPath:""}): type: 'Normal' reason: 'UPDATE' Ingress jhub/kube-lego-nginx
W0708 23:15:48.737407 6 controller.go:1026] unexpected error validating SSL certificate jhub/kubelego-tls-proxy-jhub for host www.jupyter.domain.org. Reason: x509: certificate is valid for jupyter.domain.org, not www.jupyter.domain.org
W0708 23:15:48.737459 6 controller.go:1027] Validating certificate against DNS names. This will be deprecated in a future version.
W0708 23:15:48.737483 6 controller.go:1032] ssl certificate jhub/kubelego-tls-proxy-jhub does not contain a Common Name or Subject Alternative Name for host www.jupyter.domain.org. Reason: x509: certificate is valid for jupyter.domain.org, not www.jupyter.domain.org
I0708 23:15:48.737537 6 controller.go:168] backend reload required
I0708 23:15:48.905680 6 controller.go:177] ingress backend successfully reloaded...
I0708 23:16:32.350292 6 event.go:218] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"jhub", Name:"jupyterhub-internal", UID:"c22712e1-a1cc-11e9-ad13-00259051cf1c", APIVersion:"extensions", ResourceVersion:"6191437", FieldPath:""}): type: 'Normal' reason: 'UPDATE' Ingress jhub/jupyterhub-internal
I0708 23:16:32.362016 6 controller.go:168] backend reload required
I0708 23:16:32.742829 6 controller.go:177] ingress backend successfully reloaded...
I0708 23:21:41.906561 6 event.go:218] Event(v1.ObjectReference{Kind:"Ingress", Namespace:"jhub", Name:"kube-lego-nginx", UID:"c4e7d01e-a137-11e9-ad13-00259051cf1c", APIVersion:"extensions", ResourceVersion:"6192429", FieldPath:""}): type: 'Normal' reason: 'UPDATE' Ingress jhub/kube-lego-nginx
I0708 23:21:41.906879 6 controller.go:168] backend reload required
I0708 23:21:42.297787 6 controller.go:177] ingress backend successfully reloaded...
.......
W0709 17:51:19.412270 6 reflector.go:341] k8s.io/ingress-nginx/internal/ingress/controller/store/store.go:140: watch of *v1.Endpoints ended with: too old resource version: 6393920 (6394923)
W0709 18:05:00.419281 6 reflector.go:341] k8s.io/ingress-nginx/internal/ingress/controller/store/store.go:140: watch of *v1.Endpoints ended with: too old resource version: 6396983 (6397441)
W0709 18:20:01.431561 6 reflector.go:341] k8s.io/ingress-nginx/internal/ingress/controller/store/store.go:140: watch of *v1.Endpoints ended with: too old resource version: 6399504 (6400210)
W0709 18:31:25.441979 6 reflector.go:341] k8s.io/ingress-nginx/internal/ingress/controller/store/store.go:140: watch of *v1.Endpoints ended with: too old resource version: 6402273 (6402312)
W0709 18:49:37.454779 6 reflector.go:341] k8s.io/ingress-nginx/internal/ingress/controller/store/store.go:140: watch of *v1.Endpoints ended with: too old resource version: 6404380 (6405675)
There is more before this, not sure if it’s useful.
kubectl logs autohttps-7b4fb9dd6b-h75pv -n jhub -c kube-lego
gives:
time="2019-07-08T22:07:53Z" level=info msg="connecting to kubernetes api: https://10.96.0.1:443" context=kubelego
time="2019-07-08T22:07:53Z" level=info msg="successfully connected to kubernetes api v1.14.3" context=kubelego
time="2019-07-08T22:07:53Z" level=info msg="server listening on http://:8080/" context=acme
time="2019-07-08T22:07:53Z" level=info msg="Queued item \"jhub/jupyterhub-internal\" to be processed immediately" context=kubelego
time="2019-07-08T22:07:53Z" level=info msg="process certificate requests for ingresses" context=kubelego
time="2019-07-08T22:07:53Z" level=info msg="cert expires in 89.2 days, no renewal needed" context=ingress_tls expire_time="2019-10-06 03:21:11 +0000 UTC" name=jupyterhub-internal namespace=jhub
time="2019-07-08T22:07:53Z" level=info msg="no cert request needed" context=ingress_tls name=jupyterhub-internal namespace=jhub
time="2019-07-08T23:15:45Z" level=info msg="Detected spec change - queued ingress \"jhub/jupyterhub-internal\" to be processed" context=kubelego
time="2019-07-08T23:15:45Z" level=info msg="process certificate requests for ingresses" context=kubelego
time="2019-07-08T23:15:45Z" level=info msg="cert does not cover all domains" context=ingress_tls domains="[www.jupyter.domain.org]" name=jupyterhub-internal namespace=jhub
time="2019-07-08T23:15:45Z" level=info msg="requesting certificate for www.jupyter.domain.org" context=ingress_tls name=jupyterhub-internal namespace=jhub
time="2019-07-08T23:16:32Z" level=info msg="Detected spec change - queued ingress \"jhub/jupyterhub-internal\" to be processed" context=kubelego
time="2019-07-08T23:21:41Z" level=warning msg="authorization failed after 5m0s: reachability test failed: Get http://www.jupyter.domain.org/.well-known/acme-challenge/_selftest: dial tcp: lookup www.jupyter.domain.org on 10.96.0.10:53: no such host" context=acme domain=www.jupyter.domain.org
time="2019-07-08T23:21:41Z" level=error msg="Error while processing certificate requests: no domain could be authorized successfully" context=kubelego
time="2019-07-08T23:21:41Z" level=error msg="worker: error processing item, requeuing after rate limit: no domain could be authorized successfully" context=kubelego
time="2019-07-08T23:21:41Z" level=info msg="process certificate requests for ingresses" context=kubelego
time="2019-07-08T23:21:41Z" level=info msg="cert expires in 89.2 days, no renewal needed" context=ingress_tls expire_time="2019-10-06 03:21:11 +0000 UTC" name=jupyterhub-internal namespace=jhub
time="2019-07-08T23:21:41Z" level=info msg="no cert request needed" context=ingress_tls name=jupyterhub-internal namespace=jhub
time="2019-07-08T23:31:41Z" level=info msg="process certificate requests for ingresses" context=kubelego
time="2019-07-08T23:31:41Z" level=info msg="cert expires in 89.2 days, no renewal needed" context=ingress_tls expire_time="2019-10-06 03:21:11 +0000 UTC" name=jupyterhub-internal namespace=jhub
time="2019-07-08T23:31:41Z" level=info msg="no cert request needed" context=ingress_tls name=jupyterhub-internal namespace=jhub
time="2019-07-09T06:07:53Z" level=info msg="Periodically check certificates at 2019-07-09 06:07:53.421953244 +0000 UTC m=+28800.108424074" context=kubelego
time="2019-07-09T06:17:53Z" level=info msg="process certificate requests for ingresses" context=kubelego
time="2019-07-09T06:17:53Z" level=info msg="cert expires in 88.9 days, no renewal needed" context=ingress_tls expire_time="2019-10-06 03:21:11 +0000 UTC" name=jupyterhub-internal namespace=jhub
time="2019-07-09T06:17:53Z" level=info msg="no cert request needed" context=ingress_tls name=jupyterhub-internal namespace=jhub
time="2019-07-09T06:17:53Z" level=info msg="ignoring as has no annotation 'hub.jupyter.org/tls-terminator'" context=ingress name=kube-lego-nginx namespace=jhub
time="2019-07-09T14:07:53Z" level=info msg="Periodically check certificates at 2019-07-09 14:07:53.421956771 +0000 UTC m=+57600.108427601" context=kubelego
time="2019-07-09T14:17:53Z" level=info msg="process certificate requests for ingresses" context=kubelego
time="2019-07-09T14:17:53Z" level=info msg="cert expires in 88.5 days, no renewal needed" context=ingress_tls expire_time="2019-10-06 03:21:11 +0000 UTC" name=jupyterhub-internal namespace=jhub
time="2019-07-09T14:17:53Z" level=info msg="no cert request needed" context=ingress_tls name=jupyterhub-internal namespace=jhub
time="2019-07-09T14:17:53Z" level=info msg="ignoring as has no annotation 'hub.jupyter.org/tls-terminator'" context=ingress name=kube-lego-nginx namespace=jhub
I did try changing the variable under hosts
in config.yaml
to www.jupyter.domain.org
as a test, which might be why some of the logs mention www?