Skip to content
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

x509: certificate has expired or is not yet valid #43

Closed
michzimny opened this issue Apr 6, 2020 · 4 comments
Closed

x509: certificate has expired or is not yet valid #43

michzimny opened this issue Apr 6, 2020 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@michzimny
Copy link
Member

The test up2u instance has k8s 1.8 installed with InitNode.sh. Now, any requests to k8s api end up with x509: certificate has expired or is not yet valid. This can be seen when manually trying to call kubectl but also in worker nodes' logs when they try to talk to the master node's API.

Nothing can be done in k8s.

For instance:

# kubectl version
Client Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.1", GitCommit:"f38e43b221d08850172a9a4ea785a86a3ffa3b3a", GitTreeState:"clean", BuildDate:"2017-10-11T23:27:35Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Unable to connect to the server: x509: certificate has expired or is not yet valid

How to renew the cluster certificates?

I've been looking around a bit, but it seems this process is properly automated in later releases of k8s.

BTW, how to check when it will happen to the production instance?

@michzimny
Copy link
Member Author

Hi, the same just occurred in production. We cannot talk to Kubernetes.

Do you know a solution for renewing those API (I guess...) certs? @diocas @ebocchi

@michzimny michzimny added the bug Something isn't working label Apr 24, 2020
This was referenced Apr 24, 2020
@ebocchi
Copy link
Collaborator

ebocchi commented Apr 29, 2020

Hi, I have never seen this before unfortunately.
I found this which seems to be exactly your problem. The solution looks a bit cumbersome to me but I would it a try to the test cluster first.

@michzimny
Copy link
Member Author

May I ask if you could help us on this issue, I mean trying to apply the solution?

I suppose this happens a year since the creation of the k8s cluster using your script (the cert expiration date is 1y?). Around a year ago, we made a big upgrade of that installation at PSNC, and also a from-scratch installation of the cluster perhaps, so this might be why we haven't experienced that before.

@michzimny
Copy link
Member Author

It's no more relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants