-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ingress-nginx controller lose ssl certificate #5337
Comments
Please update to 0.30.0. The version you are using is almost two years old https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.14.0 |
will consider upgrade. we stayed at 0.14.0 because upto at least 0.22 we had troubles with ingress tls certs regarding certificate chains. I did search issues to see whether this issue was reported but found none. |
You should upgrade and if this is an issue, open a new one, indicating how to reproduce it, so we can fix it and be available in the next release. |
We 'helm deleted' then 'helm installed' ingress nginx 0.14.0, and the missing ssl certificate issue returned. Again, modifying the secret from k8s dashboard made it noticed. The ingress tls secret involved has the following members: In the log we have the following when nginx ingress is reinstalled:
When the ca.crt member was renamed to caca.crt, the log showed:
The ingress in question starts to get its certificate and starts working.
Other ingress tls secrets in the same cluster are all ok, with with their tls.crt containing the ceritificate, the intermidate CA certificate, but no root CA certificate, and with no ca.crt. On other clusters, we have ingress tls.crt members with the entire certificate chain (3 certs) but no ca.crt and they are loaded ok. the other clusters have the the same k8s, helm, and nginx. Hope the above is sufficient to recreate the issue, may be with the new nginx ingress version. FYI: We did upgrade from chart version 0.18.1 to the latest and the upgrade failed, with helm displaying the following:
The nginx ingress seems to be running, but ingress on apiserver is not working, probably all other ingresses are not working. Rolling back is successful, but the nginx controler stayed at the new app version according to the log and the ingresses are not working. We then deleted the nginx ingress and helm installed the latest, which looks ok except the apiserver ingress does not work, probably neither other ingresses. Finally we reinstalled the chart version 0.18.1 to restore the service and leave the upgrade to further testing. |
NGINX Ingress controller version:
kubectl logs pod/nginx-ingress-controller-78465dcf9d-gvg7m -n nginx-ingress | head :
NGINX Ingress controller
Release: 0.14.0
Build: git-734361d
Repository: https://github.com/kubernetes/ingress-nginx
Kubernetes version (use
kubectl version
):v1.12.7+1.2.3.el7
Environment:
VMWare instance
OS (e.g. from /etc/os-release):
Oracle Linux Server 7.6
Kernel (e.g.
uname -a
):4.14.35-1902.7.3.1.el7uek.x86_64
Install tools:
Oracle tools for HA kubernetes cluster, 2019 release
Others:
What happened:
ingress controller started log the following on a ingress after working fine for many weeks:
The ingress url stopped working, apparently serving the certificates of the default backend instead.
Restarting the ingress controller by deleting the pod does not help.
However, editing the secret on the kubernetes dashboard made it to be noticed by the ingress controller again, and the ingress controller would log the following:
What you expected to happen:
ingress controller should not lose track of the ssl secret.
issue #1004 might be related.
the haproxy-ingress issue seems hinting something: jcmoraisjr/haproxy-ingress#78
How to reproduce it:
This happened spontaneously after running ok for weeks. We really have no idea how to reproduce but similar incident had happened some other times.
Anything else we need to know:
/kind bug
The text was updated successfully, but these errors were encountered: